41 #include <moveit_msgs/msg/robot_state.hpp>
64 bool copy_attached_bodies =
true);
74 bool copy_attached_bodies =
true);
83 bool copy_attached_bodies =
true);
91 const std::vector<const AttachedBody*>& attached_bodies,
92 std::vector<moveit_msgs::msg::AttachedCollisionObject>& attached_collision_objs);
118 void robotStateToStream(
const RobotState& state, std::ostream& out,
bool include_header =
true,
119 const std::string& separator =
",");
131 const std::vector<std::string>& joint_groups_ordering,
bool include_header =
true,
132 const std::string& separator =
",");
141 void streamToRobotState(RobotState& state,
const std::string& line,
const std::string& separator =
",");
void robotStateToRobotStateMsg(const RobotState &state, moveit_msgs::msg::RobotState &robot_state, bool copy_attached_bodies=true)
Convert a MoveIt robot state to a robot state message.
bool jointTrajPointToRobotState(const trajectory_msgs::msg::JointTrajectory &trajectory, std::size_t point_id, RobotState &state)
Convert a joint trajectory point to a MoveIt robot state.
bool jointStateToRobotState(const sensor_msgs::msg::JointState &joint_state, RobotState &state)
Convert a joint state to a MoveIt robot state.
void attachedBodiesToAttachedCollisionObjectMsgs(const std::vector< const AttachedBody * > &attached_bodies, std::vector< moveit_msgs::msg::AttachedCollisionObject > &attached_collision_objs)
Convert AttachedBodies to AttachedCollisionObjects.
void robotStateToStream(const RobotState &state, std::ostream &out, bool include_header=true, const std::string &separator=",")
Convert a MoveIt robot state to common separated values (CSV) on a single line that is outputted to a...
void robotStateToJointStateMsg(const RobotState &state, sensor_msgs::msg::JointState &joint_state)
Convert a MoveIt robot state to a joint state message.
void streamToRobotState(RobotState &state, const std::string &line, const std::string &separator=",")
Convert a string of joint values from a file (CSV) or input source into a RobotState.
bool robotStateMsgToRobotState(const Transforms &tf, const moveit_msgs::msg::RobotState &robot_state, RobotState &state, bool copy_attached_bodies=true)
Convert a robot state msg (with accompanying extra transforms) to a MoveIt robot state.
Main namespace for MoveIt.