Message handler that streams joint trajectories to the robot controller. Contains FS100-specific motion control commands.
More...
|
virtual bool | create_message (int seq, const trajectory_msgs::JointTrajectoryPoint &pt, SimpleMessage *msg) |
| Create SimpleMessage for sending to the robot. More...
|
|
virtual bool | create_message (int seq, const motoman_msgs::DynamicJointsGroup &pt, SimpleMessage *msg) |
|
virtual bool | create_message_ex (int seq, const motoman_msgs::DynamicJointPoint &point, SimpleMessage *msg) |
|
virtual bool | init (SmplMsgConnection *connection, const std::vector< std::string > &joint_names, const std::map< std::string, double > &velocity_limits=std::map< std::string, double >()) |
| Class initializer. More...
|
|
virtual bool | init (SmplMsgConnection *connection, const std::map< int, RobotGroup > &robot_groups, const std::map< std::string, double > &velocity_limits=std::map< std::string, double >()) |
| Class initializer. More...
|
|
| MotomanJointTrajectoryStreamer (int robot_id=-1) |
| Default constructor. More...
|
|
virtual bool | send_to_robot (const std::vector< SimpleMessage > &messages) |
| Send trajectory to robot, using this node's robot-connection. Specific method must be implemented in a derived class (e.g. streaming, download, etc.) More...
|
|
virtual void | streamingThread () |
|
| ~MotomanJointTrajectoryStreamer () |
|
virtual void | jointTrajectoryCB (const trajectory_msgs::JointTrajectoryConstPtr &msg) |
|
virtual void | jointTrajectoryCB (const trajectory_msgs::JointTrajectoryConstPtr &msg) |
|
virtual void | jointTrajectoryCB (const motoman_msgs::DynamicJointTrajectoryConstPtr &msg) |
|
| JointTrajectoryStreamer (int min_buffer_size=1) |
|
| JointTrajectoryStreamer (int min_buffer_size=1) |
| Default constructor. More...
|
|
bool | send_to_robot (const std::vector< JointTrajPtMessage > &messages) |
|
void | streamingThread () |
|
virtual bool | trajectory_to_msgs (const trajectory_msgs::JointTrajectoryConstPtr &traj, std::vector< JointTrajPtMessage > *msgs) |
|
virtual bool | trajectory_to_msgs (const trajectory_msgs::JointTrajectoryConstPtr &traj, std::vector< SimpleMessage > *msgs) |
| Convert ROS trajectory message into stream of SimpleMessages for sending to robot. Also includes various joint transforms that can be overridden for robot-specific behavior. More...
|
|
virtual bool | trajectory_to_msgs (const motoman_msgs::DynamicJointTrajectoryConstPtr &traj, std::vector< SimpleMessage > *msgs) |
| Convert ROS trajectory message into stream of SimpleMessages for sending to robot. Also includes various joint transforms that can be overridden for robot-specific behavior. More...
|
|
| ~JointTrajectoryStreamer () |
|
| ~JointTrajectoryStreamer () |
|
virtual bool | init (std::string default_ip="", int default_port=StandardSocketPorts::MOTION) |
|
virtual bool | init (SmplMsgConnection *connection) |
|
virtual bool | init (std::string default_ip="", int default_port=StandardSocketPorts::MOTION, bool version_0=false) |
| Initialize robot connection using default method. More...
|
|
virtual bool | init (SmplMsgConnection *connection) |
| Initialize robot connection using specified method. More...
|
|
| JointTrajectoryInterface () |
|
| JointTrajectoryInterface () |
| Default constructor. More...
|
|
virtual void | run () |
|
virtual void | run () |
| Begin processing messages and publishing topics. More...
|
|
virtual | ~JointTrajectoryInterface () |
|
virtual | ~JointTrajectoryInterface () |
|
|
bool | disableRobotCB (std_srvs::Trigger::Request &req, std_srvs::Trigger::Response &res) |
| Disable the robot. Response is true if the state was flipped or false if the state has not changed. More...
|
|
bool | enableRobotCB (std_srvs::Trigger::Request &req, std_srvs::Trigger::Response &res) |
| Enable the robot. Response is true if the state was flipped or false if the state has not changed. More...
|
|
bool | is_valid (const trajectory_msgs::JointTrajectory &traj) |
|
bool | is_valid (const motoman_msgs::DynamicJointTrajectory &traj) |
| Validate that trajectory command meets minimum requirements. More...
|
|
void | trajectoryStop () |
|
virtual bool | calc_duration (const trajectory_msgs::JointTrajectoryPoint &pt, double *rbt_duration) |
|
virtual bool | calc_duration (const trajectory_msgs::JointTrajectoryPoint &pt, double *rbt_duration) |
| Compute the expected move duration for communication to the robot. If unneeded by the robot server, set to 0 (or any value). More...
|
|
virtual bool | calc_duration (const motoman_msgs::DynamicJointsGroup &pt, double *rbt_duration) |
| Compute the expected move duration for communication to the robot. If unneeded by the robot server, set to 0 (or any value). More...
|
|
virtual bool | calc_speed (const trajectory_msgs::JointTrajectoryPoint &pt, double *rbt_velocity, double *rbt_duration) |
|
virtual bool | calc_velocity (const trajectory_msgs::JointTrajectoryPoint &pt, double *rbt_velocity) |
|
virtual bool | calc_velocity (const trajectory_msgs::JointTrajectoryPoint &pt, double *rbt_velocity) |
| Reduce the ROS velocity commands (per-joint velocities) to a single scalar for communication to the robot. If unneeded by the robot server, set to 0 (or any value). More...
|
|
virtual bool | calc_velocity (const motoman_msgs::DynamicJointsGroup &pt, double *rbt_velocity) |
| Reduce the ROS velocity commands (per-joint velocities) to a single scalar for communication to the robot. If unneeded by the robot server, set to 0 (or any value). More...
|
|
virtual void | jointStateCB (const sensor_msgs::JointStateConstPtr &msg) |
|
virtual void | jointStateCB (const sensor_msgs::JointStateConstPtr &msg) |
|
virtual void | jointStateCB (const sensor_msgs::JointStateConstPtr &msg, int robot_id) |
|
virtual void | jointTrajectoryExCB (const motoman_msgs::DynamicJointTrajectoryConstPtr &msg) |
| Callback function registered to ROS topic-subscribe. Transform ROS message into SimpleMessage objects and send commands to robot. More...
|
|
virtual bool | select (const std::vector< std::string > &ros_joint_names, const trajectory_msgs::JointTrajectoryPoint &ros_pt, const std::vector< std::string > &rbt_joint_names, trajectory_msgs::JointTrajectoryPoint *rbt_pt) |
|
virtual bool | select (const std::vector< std::string > &ros_joint_names, const motoman_msgs::DynamicJointsGroup &ros_pt, const std::vector< std::string > &rbt_joint_names, motoman_msgs::DynamicJointsGroup *rbt_pt) |
| Select specific joints for sending to the robot. More...
|
|
virtual bool | select (const std::vector< std::string > &ros_joint_names, const trajectory_msgs::JointTrajectoryPoint &ros_pt, const std::vector< std::string > &rbt_joint_names, trajectory_msgs::JointTrajectoryPoint *rbt_pt) |
| Select specific joints for sending to the robot. More...
|
|
virtual bool | send_to_robot (const std::vector< JointTrajPtMessage > &messages)=0 |
|
virtual bool | stopMotionCB (industrial_msgs::StopMotion::Request &req, industrial_msgs::StopMotion::Response &res) |
|
virtual bool | stopMotionCB (industrial_msgs::StopMotion::Request &req, industrial_msgs::StopMotion::Response &res) |
| Callback function registered to ROS stopMotion service Sends stop-motion command to robot. More...
|
|
virtual bool | trajectory_to_msgs (const trajectory_msgs::JointTrajectoryConstPtr &traj, std::vector< JointTrajPtMessage > *msgs) |
|
virtual bool | transform (const trajectory_msgs::JointTrajectoryPoint &pt_in, trajectory_msgs::JointTrajectoryPoint *pt_out) |
|
virtual bool | transform (const trajectory_msgs::JointTrajectoryPoint &pt_in, trajectory_msgs::JointTrajectoryPoint *pt_out) |
| Transform joint positions before publishing. Can be overridden to implement, e.g. robot-specific joint coupling. More...
|
|
virtual bool | transform (const motoman_msgs::DynamicJointsGroup &pt_in, motoman_msgs::DynamicJointsGroup *pt_out) |
|
Message handler that streams joint trajectories to the robot controller. Contains FS100-specific motion control commands.
THIS CLASS IS NOT THREAD-SAFE
Definition at line 65 of file joint_trajectory_streamer.h.