#include <valves.h>
Definition at line 41 of file valves.h.
shadowrobot::Valves::Valves |
( |
| ) |
|
Initializes the necessary mappings with a static list of names.
Definition at line 38 of file valves.cpp.
shadowrobot::Valves::~Valves |
( |
| ) |
|
void shadowrobot::Valves::init_subs_and_pubs |
( |
int |
index_joint | ) |
|
|
private |
void shadowrobot::Valves::publish |
( |
| ) |
|
Callback function for the periodic publishing: publishes the data for each valve.
Definition at line 192 of file valves.cpp.
void shadowrobot::Valves::valve_command |
( |
const std_msgs::Float64ConstPtr & |
msg, |
|
|
int |
index_valve |
|
) |
| |
|
private |
callback function for the valves: send a command to a given valve.
we have on subscriber per valve. The subscriber index corresponds to the index_valve. From this index_valve you can get the valve sensor from the valves_sensors vector.
- Parameters
-
msg | the msg containing a value to send to a valve controller. |
index_valve | the index of the valve in the valves_sensors vector. |
- Returns
Definition at line 182 of file valves.cpp.
std::vector<struct sensor> shadowrobot::Valves::valves_sensors |
|
private |
The documentation for this class was generated from the following files: