Functions | |
static bool | check_bit (uint16_t data, size_t index) |
static std::string | get_ronex_devices_string (int ronex_parameter_id, std::string part) |
static int | get_ronex_param_id (std::string ronex_id) |
static void | set_bit (uint32_t &data, size_t index, bool value) |
static void | set_bit (uint16_t &data, size_t index, bool value) |
static bool ronex::check_bit | ( | uint16_t | data, |
size_t | index | ||
) | [inline, static] |
Checks if the bit is set for the given index.
data | The var containing the different bits. |
index | The index for which we're checking the bit. |
Definition at line 43 of file sr_ronex_utilities.hpp.
static std::string ronex::get_ronex_devices_string | ( | int | ronex_parameter_id, |
std::string | part | ||
) | [inline, static] |
Construct a string for e.g., ros::param::get as the key.
ronex_parameter_id | Part of the key (e.g., 2). |
part | Part of the key (e.g., "product_name"). |
Definition at line 138 of file sr_ronex_utilities.hpp.
static int ronex::get_ronex_param_id | ( | std::string | ronex_id | ) | [inline, static] |
Checks the ronexes already present on the parameter server and returns an id on which the given ronex is stored on the parameter server.
The parameter server contains: /ronex/0/product_id = "0x200001" /ronex/0/produc_name = "general_io" /ronex/0/ronex_id = "my_beautiful_ronex" or serial if no alias /ronex/0/path = "/ronex/general_io/my_beautiful_ronex" /ronex/0/serial = "1234"
/ronex/1/...
ronex_id | Either the alias or the serial number if no alias is specified. If empty string given, then returns the first available id. |
Definition at line 97 of file sr_ronex_utilities.hpp.
static void ronex::set_bit | ( | uint32_t & | data, |
size_t | index, | ||
bool | value | ||
) | [inline, static] |
Sets the given bit to the given value.
data | The var containing the different bits. |
index | The index for which we're setting the bit. |
value | The value we want the bit to take |
Definition at line 56 of file sr_ronex_utilities.hpp.
static void ronex::set_bit | ( | uint16_t & | data, |
size_t | index, | ||
bool | value | ||
) | [inline, static] |
Sets the given bit to the given value.
data | The var containing the different bits. |
index | The index for which we're setting the bit. |
value | The value we want the bit to take |
Definition at line 71 of file sr_ronex_utilities.hpp.