![]() |
FancySafeBot 0.0.1
A safe robotics library
|
Name-index map of joints and bodies in rigid body tree.
#include <fsb_urdf_name_map.h>

Public Member Functions | |
| void | set_robot_name (const std::string &name) |
| Set robot name. | |
| NameMapError | add_body (const size_t index, const std::string &name) |
| NameMapError | add_joint (const size_t index, const std::string &name) |
| size_t | get_body_index (const std::string &name, NameMapError &err) const |
| Get index of body in tree. | |
| size_t | get_joint_index (const std::string &name, NameMapError &err) const |
| Get index of joint in body tree. | |
| bool | body_exists (const std::string &name) const |
| Check if body name is set in map. | |
| bool | joint_exists (const std::string &name) const |
| Check if joint name is set in map. | |
| size_t | get_num_bodies () const |
| Get number of bodies in map. | |
| size_t | get_num_joints () const |
| Get number of joints in map. | |
|
inline |
|
inline |
|
inline |
Check if body name is set in map.
| name | Name of body to check |
true if body exists in map
|
inline |
Get index of body in tree.
| name | Body name |
| err | Error status |
|
inline |
Get index of joint in body tree.
| name | Joint name |
| err | Error status |
|
inline |
Get number of bodies in map.
|
inline |
Get number of joints in map.
|
inline |
Check if joint name is set in map.
| name | Name of joint to check |
true if joint exists in map
|
inline |
Set robot name.
| name | Robot name |