Map from force names to force ids.
More...
#include <sot/torque-control/talos-common.hh>
Map from force names to force ids.
Definition at line 254 of file talos-common.hh.
◆ create_id_2_limits_map()
static std::map<unsigned int, ForceLimits> create_id_2_limits_map |
( |
| ) |
|
|
inlinestatic |
◆ create_id_2_name_map()
static std::map<unsigned int, std::string> create_id_2_name_map |
( |
const std::map< std::string, unsigned int > & |
name_2_id_map | ) |
|
|
inlinestatic |
◆ create_name_2_id_map()
static std::map<std::string, unsigned int> create_name_2_id_map |
( |
| ) |
|
|
inlinestatic |
◆ get_id_from_name()
static int get_id_from_name |
( |
std::string |
name | ) |
|
|
inlinestatic |
Given a force name it finds the associated id. If the specified force name is not found it returns -1;
- Parameters
-
name | Name of the force to find. |
- Returns
- The id of the specified force, -1 if not found.
Definition at line 289 of file talos-common.hh.
◆ get_limits_from_id()
static ForceLimits get_limits_from_id |
( |
unsigned int |
id | ) |
|
|
inlinestatic |
Given a force id it finds the associated limits. If the specified force is not found it returns ForceLimits(0,0).
- Parameters
-
id | Id of the force to find. |
- Returns
- The limits of the specified force, ForceLimits(0,0) if not found.
Definition at line 311 of file talos-common.hh.
◆ get_name_from_id()
static std::string get_name_from_id |
( |
unsigned int |
id | ) |
|
|
inlinestatic |
Given a force id it finds the associated name. If the specified force is not found it returns "Force name not found";
- Parameters
-
id | Id of the force to find. |
- Returns
- The name of the specified force, "Force name not found" if not found.
Definition at line 300 of file talos-common.hh.
◆ id_2_limits
◆ id_2_name
◆ name_2_id
The documentation for this struct was generated from the following file: