ROS & ROS2: State and errors

Robot state

Joint positions, velocities and torques (effort)

Read the axis-specific (joint) actual positions, velocities (internally calculated as the position difference in 1/100 second interval) and external acting torques (without the component resulting from the robot weight and mass inertias during motion)

Default topic name

Message type (msg)

Units

/iiwa/state/joint_states

sensor_msgs/JointState

position (\(radians\)), velocity (\(radians/s\)), torque (\(Nm\))

$ rostopic echo /iiwa/state/joint_states

End-effector Cartesian pose (position and orientation)

Read the end-effector Cartesian position (X,Y,Z) and orientation (A,B,C)

Default topic name

Message type (msg)

Units

/iiwa/state/end_effector_pose

geometry_msgs/Pose

position (\(m\)), orientation as quaternion

$ rostopic echo /iiwa/state/end_effector_pose

End-effector Cartesian forces and torques

Read the end-effector Cartesian force (X,Y,Z) and torque (A,B,C)

Default topic name

Message type (msg)

Units

/iiwa/state/end_effector_wrench

geometry_msgs/Wrench

force (\(N\)), torque (\(Nm\))

$ rostopic echo /iiwa/state/end_effector_wrench

Has fired condition

Whether motion has terminated due to a break condition

Default service name

Service type (srv)

/iiwa/has_fired_condition

libiiwa_msgs/GetBool

$ rosservice call /iiwa/has_fired_condition "{}"

Is ready to move

Whether the robot is ready for motion. A true value does not necessarily mean that the brakes are open and that the robot is under servo control

Default service name

Service type (srv)

/iiwa/is_ready_to_move

libiiwa_msgs/GetBool

$ rosservice call /iiwa/is_ready_to_move "{}"

Has active motion

Whether the robot is active. It does not provide any information on whether the robot is currently in motion (a false value does not necessarily mean that the robot is stationary)

Default service name

Service type (srv)

/iiwa/has_active_motion

libiiwa_msgs/GetBool

$ rosservice call /iiwa/has_active_motion "{}"

Errors

Last registered error code

Default service name

Service type (srv)

/iiwa/last_error

libiiwa_msgs/GetError

$ rosservice call /iiwa/last_error "{}"