From 6fd0cc1dd9c5ddc8c9d6d44f9b6189b4475295a7 Mon Sep 17 00:00:00 2001 From: Dan Wahl Date: Wed, 16 Sep 2026 17:50:09 -0500 Subject: [PATCH] feat(lab_sim): select the camera renderer from one setting MOVEIT_PRO_CAMERA_RENDERER picks mujoco (the default), nyx, or both. The robot description resolves the MuJoCo camera and point-cloud rates from it and runtime.launch.xml reads the same variable to decide whether to start picknik_nyx_renderer, so the two halves cannot disagree. The point-cloud rate has to follow the render rate rather than stand alone: the cloud timer publishes what the render timer produced, so running it against a stopped renderer reports every camera as never having rendered. Nyx has no depth output, so selecting it gives up point clouds. An unrecognized value fails the description rather than leaving the config with no cameras and no explanation. Needs the Nyx renderer package, which is not in a released image yet, so anything other than the default requires a moveit_pro build that carries it. Co-Authored-By: Claude Opus 5 (1M context) Claude-Session: https://claude.ai/code/session_019YCk2yNsEQkVUSvhAmsJ4m --- src/lab_sim/description/picknik_ur.xacro | 17 +++++++++++++---- src/lab_sim/launch/runtime.launch.xml | 24 ++++++++++++++++++++++++ 2 files changed, 37 insertions(+), 4 deletions(-) diff --git a/src/lab_sim/description/picknik_ur.xacro b/src/lab_sim/description/picknik_ur.xacro index 470c2020f..536e7a741 100644 --- a/src/lab_sim/description/picknik_ur.xacro +++ b/src/lab_sim/description/picknik_ur.xacro @@ -2,6 +2,15 @@ + + + picknik_mujoco_ros/MujocoSystem $(arg mujoco_model) $(arg mujoco_model_package) - - 10 - - $(arg point_cloud_publish_rate) + + ${10 if mujoco_cameras else 0} + + ${$(arg point_cloud_publish_rate) if mujoco_cameras else 0} 60 diff --git a/src/lab_sim/launch/runtime.launch.xml b/src/lab_sim/launch/runtime.launch.xml index b2aa75434..cb3591eca 100644 --- a/src/lab_sim/launch/runtime.launch.xml +++ b/src/lab_sim/launch/runtime.launch.xml @@ -3,4 +3,28 @@ + + + + + + + +