Getting started
One worked example, start to finish: bring up a simulated arm and move a joint. No hardware, no GPU, no ROS installed on your machine — just Docker. Everything here runs the same way against the real arm later; only one flag changes.
What you are talking to
The driver is one container. Inside it, a 1 kHz real-time loop talks to the arm; the
ROS layer never touches that loop directly. In sim, SimTransport stands in for the
hardware and behaves the same from the outside.
The dashed arrow is the part that catches people out. The planner is a second container, and this image does not contain it — it holds only the cuRobo message definitions, not cuRobo. The driver is a client of the planner, which needs a GPU and has no business inside a real-time container.
Everything below runs on the driver plus arm_state_publisher, which publishes the
arm’s model for the driver. The go_to_* actions also need the planner — see
Planned moves need both containers.
1. Start the arm
Put your robot’s mount.yaml in ./robot/ (robot: <name>, rpy_deg: [r, p, y],
degrees; [0, 0, 0] for a level arm). There is no default: it sets the gravity
direction. Start the model first, then the driver:
docker run --rm -d --name arm_state_publisher --network host --ipc host \
-e RMW_IMPLEMENTATION=rmw_cyclonedds_cpp -v "$PWD/robot:/config/robot:ro" \
ghcr.io/rammp-org/kinova-gen3-ros2:2.1.0 \
ros2 launch kinova_gen3_description description.launch.py \
mount_file:=/config/robot/mount.yaml
docker run --rm -it --network host --ipc host \
-e RMW_IMPLEMENTATION=rmw_cyclonedds_cpp \
ghcr.io/rammp-org/kinova-gen3-ros2:2.1.0You should see:
[kinova_gen3_node]: model from /arm/robot_description: mount tilt 0.0 deg from vertical, ...
[kinova_gen3_node]: kinova_gen3_node up (sim); arbitration=disabled;
actions: /execute_joint_trajectory, /go_to_ee_pose, ...The tilt must match your arm (30.0 on flatbot and gen_1_5). Without
arm_state_publisher the driver waits 30 s for the model and exits 1.
The published image is arm64 only — it builds on rammp-base, which is
published for the Jetson. On an x86-64 machine docker run will fail to find a
matching image; build from source instead (see below), which does support
x86-64.
--network host and --ipc host are not optional: DDS needs both to reach your
shell. RMW_IMPLEMENTATION must match in every shell you use — see
Troubleshooting for what happens when it doesn’t.
2. Check it is alive
In a second shell:
export RMW_IMPLEMENTATION=rmw_cyclonedds_cpp
ros2 topic echo --once --qos-reliability best_effort /joint_statesThat --qos-reliability best_effort is required. /joint_states is published
best-effort at ~100 Hz. Without the flag ros2 topic echo prints nothing at all and
looks broken — this is the single most common first stumble.
You should get seven joint positions.
3. Move a joint
The lowest tier is execute_joint_trajectory: you give the waypoints, the driver
tracks them. Seed waypoint 0 from where the arm is, then move one joint a little:
ros2 action send_goal /execute_joint_trajectory \
rammp_arm_interfaces/action/ExecuteJointTrajectory \
"{trajectory: {joint_names: [arm_joint_1, arm_joint_2, arm_joint_3, arm_joint_4,
arm_joint_5, arm_joint_6, arm_joint_7], points: [
{positions: [0,0.26,3.14,-2.27,0,0.96,1.57], time_from_start: {sec: 0}},
{positions: [0,0.26,3.14,-2.27,0,1.21,1.57], time_from_start: {sec: 3}}
]}, control_mode: 0, preemption: 1}" --feedbackThat moves joint 6 by 0.25 rad over three seconds. Watch error_code in the result:
0 is success. Anything else is listed in the
interface reference.
Always seed waypoint 0 from the arm’s measured position. On a real arm a trajectory that starts somewhere else is a jump, not a move.
4. Turn arbitration on
Everything above ran with arbitration=disabled, where anyone may command the arm.
Real deployments run enforced, where every goal carries a capability token:
Restart the node with --ros-args -p arbitration_mode:=enforced, then call
/acquire_control and put the returned token on every goal. A goal without it is
refused, which is the second most common stumble.
arbitration_mode is read-only at launch — setting it on a running node silently
does nothing.
Planned moves need both containers
Everything so far used the driver alone. The three go_to_* actions do not: they say
where, not how, and something has to work out the how. That something is the
cuRobo planner, in its own container.
| you call | needs the planner? |
|---|---|
/execute_joint_trajectory — you supply the path | no |
/setpoint/* streaming, /setpoint/gripper | no |
/acquire_control, /estop, all state topics | no |
/go_to_joint_config, /go_to_ee_pose, /go_to_preset | yes |
Send a go_to_* goal with no planner running and it is accepted and then simply
never finishes — there is nothing to plan it. That is the single most confusing way
this driver can fail, and it is not your client’s fault.
The fleet way
On a RAMMP machine, sheppy reads this module’s rammp-alternative*.yaml fragments
and starts both containers with the right flags. You should not have to think about
any of what follows.
Doing it yourself
Off-fleet, run both with compose.
Put your robot’s mount.yaml next to compose.yaml (robot: <name>, rpy_deg: [r, p, y]); there is no default.
Save this as compose.yaml:
services:
kinova_gen3_driver:
image: ghcr.io/rammp-org/kinova-gen3-ros2:2.1.0
network_mode: host
ipc: host # DDS shared-memory transport
cap_add: [SYS_NICE] # permits sched_setscheduler...
ulimits: # ...and these let it SUCCEED. Capabilities
rtprio: 99 # are not rlimits, and --privileged does NOT
memlock: -1 # raise RLIMIT_RTPRIO. Both are required.
environment:
RMW_IMPLEMENTATION: rmw_cyclonedds_cpp
command:
- /module_ws/install/kinova_gen3_ros2/lib/kinova_gen3_ros2/kinova_gen3_node
- --ip
- ${KINOVA_ARM_IP:-192.168.1.10} # drop these two lines for --sim
# The arm's model and TF. The driver reads /arm/robot_description at startup and
# exits without it.
arm_state_publisher:
image: ghcr.io/rammp-org/kinova-gen3-ros2:2.1.0
network_mode: host
ipc: host
environment:
RMW_IMPLEMENTATION: rmw_cyclonedds_cpp
volumes:
- ./mount.yaml:/config/robot/mount.yaml:ro
command:
- ros2
- launch
- kinova_gen3_description
- description.launch.py
- mount_file:=/config/robot/mount.yaml
curobo_planner:
image: rammp-curobo:jp6 # owned by rammp-org/RAMMP-CuRobo
runtime: nvidia # JetPack exposes the GPU this way, NOT --gpus
network_mode: host
ipc: host
environment:
RMW_IMPLEMENTATION: rmw_cyclonedds_cppKINOVA_ARM_IP=192.168.1.10 docker compose upThree things here are load-bearing and not stylistic:
ipc: hostandnetwork_mode: hoston all three — without them the containers cannot see each other’s DDS traffic, and neither can your shell.cap_add: SYS_NICEand theulimits. The capability permitssched_setscheduler; the rlimits are what let it succeed.--privilegedraises the first and not the second, so it is not a substitute.runtime: nvidia, not--gpus, on JetPack.
The version of this file the fleet actually runs lives at deploy/compose.yaml in
the repo. It differs on purpose: it builds images locally rather than pulling them.
Running natively, without Docker
There is no package to install — no apt repo, no bloom release. The container is the binary distribution. Native means building from source in a colcon workspace, which is worth doing if you are changing the driver, or if you want the real-time loop without a container between it and the kernel.
You need ROS 2 Humble already installed. Everything below was run start to
finish on a clean ros:humble.
sudo apt install -y git python3-pip python3-vcstool python3-rosdep ros-humble-rmw-cyclonedds-cpp
sudo rosdep init # first time on this machine only
rosdep update --rosdistro humble
mkdir -p ~/ros2_ws/src && cd ~/ros2_ws
git clone https://github.com/rammp-org/kinova-gen3-ros2 src/kinova_gen3_ros2
vcs import src < src/kinova_gen3_ros2/kinova_gen3.repos
git clone --branch v2.1.0 https://github.com/rammp-org/rammp-interfaces-ros2 src/rammp-interfaces-ros2kinova_gen3.repos brings in the core driver and cuRobo’s message definitions. It
does not contain this repo, which is why you clone that yourself first, and it
does not contain the RAMMP interfaces either — the container gets those from its base
image, so a native build clones them itself.
Pinocchio has to come from pip, pinned
pip install -r src/kinova_gen3_ros2/docker/requirements.txtDo not install ros-humble-pinocchio. It is 4.0.0 on Humble — a major version
ahead of what the core driver is validated against — and it would shadow the wheels.
Pinning pin alone is not enough either, which is why that requirements file pins
all fifteen packages together. A loose resolve pulls cmeel-urdfdom 6.0.0, and the
result builds cleanly and then dies at startup with
liburdfdom_sensor.so.4.0: cannot open shared object file. If you see that, your
cmeel stack drifted.
Build
source /opt/ros/humble/setup.bash
rosdep install --ignore-src -y --skip-keys pinocchio --from-paths \
src/kinova_gen3_ros2 src/kinova-gen3-driver src/rammp-interfaces-ros2 \
src/RAMMP-CuRobo/rammp_curobo_interfaces
export CMAKE_PREFIX_PATH="$(python3 -m cmeel cmake):${CMAKE_PREFIX_PATH:-}"
colcon build --packages-up-to kinova_gen3_ros2 kinova_gen3_description \
--cmake-args -DCMAKE_BUILD_TYPE=ReleaseBoth of those are narrower than the obvious version, on purpose:
--from-pathslists packages instead of takingsrc. The repos file vendors all of RAMMP-CuRobo, so a baresrcwould install the GPU planner’s dependencies for a node you are not building.--packages-up-to kinova_gen3_ros2stops at the driver and its dependencies, leavingrammp_curobo_ros— the planner — unbuilt. That one needs a GPU and lives in its own container.
Expect four packages and under a minute.
Run
source install/setup.bash
ros2 launch kinova_gen3_description bringup.launch.py sim:=true \
mount_file:=src/kinova_gen3_ros2/kinova_gen3_description/test/mounts/level.yamlSame banner as the container. Swap sim:=true for sim:=false ip:=<arm-address> for real
hardware — but that needs the KORTEX build below.
If you script this, note that install/setup.bash reads COLCON_TRACE unguarded,
so it fails under set -u. Source it with -u off and turn it back on afterwards.
Real-time privileges
The container gets these from cap_add: SYS_NICE plus the ulimits. Natively, grant
them once on the built binary:
sudo setcap cap_sys_nice,cap_ipc_lock+ep \
install/kinova_gen3_ros2/lib/kinova_gen3_ros2/kinova_gen3_nodeWithout it the node still runs — it reports SCHED_FIFO failed: Operation not permitted and continues at normal priority. That is the failure worth knowing about,
because nothing stops working; you just quietly lose the real-time guarantee and see
it later as jitter.
Talking to a real arm
The real-arm build links Kinova’s KORTEX SDK statically, so it has to be present at build time. It is publicly downloadable:
# aarch64: linux_aarch64_gcc_7.4.zip x86-64: linux_x86-64_gcc_5.4.zip
curl -fsSL -o /tmp/kortex.zip \
https://artifactory.kinovaapps.com/artifactory/generic-public/kortex/API/2.8.0/linux_x86-64_gcc_5.4.zip
mkdir -p ~/kortex && unzip -q /tmp/kortex.zip -d ~/kortex
colcon build --packages-up-to kinova_gen3_ros2 --cmake-args \
-DCMAKE_BUILD_TYPE=Release -DKINOVA_ENABLE_KORTEX=ON -DKORTEX_HW_DIR="$HOME/kortex"Build without KINOVA_ENABLE_KORTEX=ON and --ip exits with
built without KORTEX; use --sim rather than failing obscurely.
Where to go next
- Interface reference — every topic, action, service, with units.
- Planned moves — say where, not how. Needs the planner container as well; see above.
- Troubleshooting — read this the first time something looks broken.
Before you touch the real arm
Change --sim to --ip <arm-address> and everything above works the same. But read
the safety notes in Troubleshooting first, and have the e-stop
in hand — a real arm moves whether or not your maths was right.