yarp-devices
LaunchCanBus.hpp
1 // -*- mode:C++; tab-width:4; c-basic-offset:4; indent-tabs-mode:nil -*-
2 
3 #ifndef __LAUNCH_CAN_BUS_HPP__
4 #define __LAUNCH_CAN_BUS_HPP__
5 
6 #include <yarp/os/RFModule.h>
7 #include <yarp/dev/PolyDriverList.h>
8 
9 namespace roboticslab
10 {
11 
16 class LaunchCanBus : public yarp::os::RFModule
17 {
18 public:
19  ~LaunchCanBus() override
20  { close(); }
21 
22  bool configure(yarp::os::ResourceFinder &rf) override;
23  double getPeriod() override;
24  bool updateModule() override;
25  bool close() override;
26 
27 private:
28  yarp::dev::PolyDriverList canDevices;
29  yarp::dev::PolyDriverList mapperDevices;
30  yarp::dev::PolyDriverList wrapperDevices;
31  yarp::dev::PolyDriverList calibratorDevices;
32 };
33 
34 } // namespace roboticslab
35 
36 #endif // __LAUNCH_CAN_BUS_HPP__
Launches one or more CAN bus drivers and control board network wrappers.
Definition: LaunchCanBus.hpp:17
The main, catch-all namespace for Robotics Lab UC3M.
Definition: groups.dox:6