|
robot_frames
|
#include <RobotFrames.hpp>
Public Member Functions | |
| TransformationCalculator () | |
| void | load_robot_model (std::string filepath, bool init_invalid=true) |
| bool | is_valid_joint_name (std::string j_name) |
| bool | is_valid_joint_type (const KDL::Joint &joint) |
| bool | is_valid_joint (const KDL::Joint &joint) |
| void | set_blacklist (const std::vector< std::string > &blacklist) |
| void | init_blacklist () |
| void | clear_blacklist () |
| void | add_to_blacklist (std::string j_name) |
| void | update (const base::samples::Joints &joints) |
| bool | get_all_transforms (std::vector< base::samples::RigidBodyState > &transforms, bool keep_content=false) |
| bool | get_transform_by_joint_name (const std::string &j_name, base::samples::RigidBodyState &transform) |
| bool | get_moving_joints_transforms (std::vector< base::samples::RigidBodyState > &transforms, bool keep_content=false) |
| bool | get_static_joints_transforms (std::vector< base::samples::RigidBodyState > &transforms, bool keep_content=false) |
| bool | knownJoint (const std::string &link_name) |
| void | output_only_valid (bool arg) |
| const KDL::TreeElement & | get_tree_element (const std::string &segment_name) |
| const KDL::Segment & | get_segment_by_segment_name (const std::string &segment_name) |
| const std::string & | get_segment_name_from_joint_name (const std::string &joint_name) |
| std::vector< std::string > | get_all_segment_names () |
| std::vector< std::string > | get_static_segment_names () |
| const std::vector< std::string > & | get_moving_joint_names () |
| const std::vector< std::string > & | get_static_joint_names () |
| const std::vector< std::string > & | get_all_joint_names () |
| const KDL::Segment & | get_segment_by_joint (const KDL::Joint joint) |
| const std::string | get_parent_name_by_segment_name (std::string seg_name) |
| bool | is_fixed (const KDL::Joint &joint) |
| bool | is_fixed (const KDL::Segment &segment) |
Protected Member Functions | |
| void | clear_all () |
Protected Attributes | |
| std::map< std::string, base::samples::RigidBodyState > | moving_joints_transforms_ |
| std::map< std::string, base::samples::RigidBodyState > | static_joints_transforms_ |
| std::vector< std::string > | moving_joint_names_ |
| std::vector< std::string > | static_joint_names_ |
| std::vector< std::string > | all_joint_names_ |
| std::vector< std::string > | static_segment_names_ |
| std::vector< std::string > | blacklist_ |
| std::map< std::string, std::string > | joint_name2seg_name_ |
| KDL::Tree | kdl_tree_ |
| bool | is_initialized_ |
| bool | output_only_valid_ |
| robot_frames::TransformationCalculator::TransformationCalculator | ( | ) |
| void robot_frames::TransformationCalculator::add_to_blacklist | ( | std::string | j_name | ) |
|
inlineprotected |
| void robot_frames::TransformationCalculator::clear_blacklist | ( | ) |
|
inline |
|
inline |
| bool robot_frames::TransformationCalculator::get_all_transforms | ( | std::vector< base::samples::RigidBodyState > & | transforms, |
| bool | keep_content = false |
||
| ) |
Get transforms
|
inline |
| bool robot_frames::TransformationCalculator::get_moving_joints_transforms | ( | std::vector< base::samples::RigidBodyState > & | transforms, |
| bool | keep_content = false |
||
| ) |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
| bool robot_frames::TransformationCalculator::get_static_joints_transforms | ( | std::vector< base::samples::RigidBodyState > & | transforms, |
| bool | keep_content = false |
||
| ) |
|
inline |
| bool robot_frames::TransformationCalculator::get_transform_by_joint_name | ( | const std::string & | j_name, |
| base::samples::RigidBodyState & | transform | ||
| ) |
|
inline |
Retrieve segment by name.
| exception | when segment is not known |
| void robot_frames::TransformationCalculator::init_blacklist | ( | ) |
|
inline |
|
inline |
| bool robot_frames::TransformationCalculator::is_valid_joint | ( | const KDL::Joint & | joint | ) |
| bool robot_frames::TransformationCalculator::is_valid_joint_name | ( | std::string | j_name | ) |
| bool robot_frames::TransformationCalculator::is_valid_joint_type | ( | const KDL::Joint & | joint | ) |
| bool robot_frames::TransformationCalculator::knownJoint | ( | const std::string & | link_name | ) |
| void robot_frames::TransformationCalculator::load_robot_model | ( | std::string | filepath, |
| bool | init_invalid = true |
||
| ) |
Load the model file. Throws exception if file not found or model could not be loaded
| filepath | : Path to the robot model definition file |
| void robot_frames::TransformationCalculator::output_only_valid | ( | bool | arg | ) |
If set to true, only moving joint transformation, that have been set are returned by get_transform_by_joint_name.
| void robot_frames::TransformationCalculator::set_blacklist | ( | const std::vector< std::string > & | blacklist | ) |
| void robot_frames::TransformationCalculator::update | ( | const base::samples::Joints & | joints | ) |
Set state of all the joint of the robot, or just a subset of them. Calculate transforms for the given joints
| joints | : Joint state to set. |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
1.8.11