Skip to Content

Arm

rammp_arm_interfaces. Commanding and observing an arm. Four ways to drive it, in increasing order of how directly you command it, plus the gripper and the arm’s state.

TierYou sendTypes
Planned movesA destination. The planner finds a collision-free trajectory and the driver executes it.GoToEEPose, GoToJointConfig, GoToPreset
Trajectory executionThe waypoints. Tolerances guard the execution.ExecuteJointTrajectory
Setpoint streamingSetpoints at rate, on channels the driver hands youOpenStream, CloseStream, ListControllers, JointSetpoint, PoseSetpoint, TwistSetpoint, StreamStatus
GripperAn absolute gripper commandGripperSetpoint, GripperState

Every command carries a token from AcquireControl. All-zeros means none. The driver validates it on every message.

Topic names, QoS and rates as the arm driver serves them are in the arm interface reference. That reference still names the types under the driver’s own kinova_gen3_interfaces package, and lists a /setpoint/wrench channel that has no type here yet. This page is the types in rammp-interfaces-ros2 v1.0.0; the v2.0.0 changes (the arm_mount frame, impedance gains, multi-target actions, contact thresholds) are listed in the repo README  and not yet here.

Planned moves

Three actions with the same result and feedback. The goal names a destination; the planner plans, the driver executes.

ActionGoal
GoToEEPosetarget (geometry_msgs/PoseStamped). frame_id must be base_link.
GoToJointConfigtarget_joints (float64[7]), radians, joint_1 to joint_7
GoToPresetpreset_name (string), from the driver’s preset registry

Each goal also carries sender_id (string) and token (uint8[16]).

FieldTypeMeaning
Resulterror_codeint32See the table below
error_stringstring
final_errorJointTrajectoryPointJoint-space final error
Feedbackphasestringplanning or executing
planner_statestringThe planner’s state, relayed while planning
fraction_completefloat32Execution progress. 0 while planning.
actualJointTrajectoryPointLive measured joints during execution

Trajectory execution

ExecuteJointTrajectory (action)

You supply the trajectory. Path and goal tolerances abort on divergence.

FieldTypeMeaning
trajectorytrajectory_msgs/JointTrajectory
path_tolerancecontrol_msgs/JointTolerance[]
goal_tolerancecontrol_msgs/JointTolerance[]
goal_time_tolerancebuiltin_interfaces/Duration
control_modeuint80 position, 1 impedance
preemptionuint80 queue, 1 latest wins
gainsJointImpedanceGainsUsed only when control_mode is impedance
sender_idstring
tokenuint8[16]

Result: error_code, error_string, final_error. Feedback: header, joint_names, desired, actual, error, fraction_complete.

JointImpedanceGains (msg)

FieldType
kqfloat64[7]
zetafloat64
torque_limitfloat64[7]

Error codes

Shared by every action above.

CodeMeaning
0SUCCESSFUL
-1INVALID_GOAL
-4PATH_TOLERANCE_VIOLATED
-5GOAL_TOLERANCE_VIOLATED
-6PREEMPTED
-7PLANNING_FAILED
-8NOT_AUTHORIZED
-9HALTED

Setpoint streaming

Open a session on a controller, publish setpoints on the channels it returns, close it. The controller and control mode are fixed for the session; to change them, close and reopen.

Call ListControllers first and let DDS discovery settle before opening. Otherwise the first setpoints go nowhere and the session expires.

ListControllers (srv)

No request. Responds with controllers (ControllerCapability[]).

ControllerCapability (msg)

FieldTypeMeaning
namestringFor example joint_impedance
channelsstring[]Topics under /setpoint/ this controller reads
availableboolComputed live, never declared

OpenStream (srv)

FieldTypeMeaning
Requestcontrollerstring
timeout_sfloat64Must be greater than 0. An unbounded stream has no safe stop.
tokenuint8[16]
Responseacceptedbool
channelsstring[]Where to publish. The driver tells you.
error_codeint320, or -10 STREAM_REJECTED
messagestring

CloseStream (srv)

Request token (uint8[16]). Response closed (bool), message (string).

JointSetpoint (msg)

One shape, three meanings. The topic says which: radians on /setpoint/joint_position, rad/s on /setpoint/joint_velocity, N·m on /setpoint/joint_torque. Always absolute, never a delta. Dropping an intermediate setpoint is correct, which is why these topics are best-effort.

FieldType
valuesfloat64[7]
tokenuint8[16]

PoseSetpoint (msg)

Target tool pose in the base frame. pose (geometry_msgs/Pose), token.

TwistSetpoint (msg)

Target tool twist in the base frame. twist (geometry_msgs/Twist), token.

StreamStatus (msg)

What the streaming tier is doing. Latched.

FieldTypeMeaning
headerstd_msgs/Header
openbool
controllerstringEmpty when closed
channelsstring[]Topics the open controller reads
timeout_sfloat64
rejected_countuint64Setpoints the session refused: wrong channel, or closed. Token failures are counted in ControlStatus instead.

Gripper

GripperSetpoint (msg)

An absolute command. Rides the arm’s token: one machine, one holder. Not sticky: every message sets all three fields, and a message carrying only position sets speed and force to their defaults.

FieldTypeDefaultMeaning
positionfloat320 open to 1 closed
speedfloat321.0Fraction of maximum closing speed. 1.0 is the maximum.
forcefloat320.5A ceiling on motor current, not a force setpoint. The gripper closes at speed toward position and stalls at this limit.
tokenuint8[16]

There is no “let go”. Releasing control does not open the gripper; the last command stays latched. To open, command position 0.

GripperState (msg)

FieldTypeMeaning
headerstd_msgs/Header
positionfloat320 open to 1 closed
effortfloat320 to 1, current over 1 A. Not newtons. A sustained grasp reads small, about 0.05, because the current settles after the fingers close.
currentfloat32Amps, raw
presentboolfalse when no gripper is attached or no controller is wired

Arm state

EeState (msg)

Cartesian state of the tool, the sibling of /joint_states. pose is fk(q) and twist is J(q)·qd, computed together from the same feedback sample and the same URDF the planner uses, so they agree by construction. Frame is world-aligned at the tool: both parts are expressed in base_link orientation. There is no wrench.

FieldType
headerstd_msgs/Header
posegeometry_msgs/Pose
twistgeometry_msgs/Twist

Edit this page on GitHub