Skip to content

[clearpath_manipulators_description] Removed Sensors system from Kinova Gen3 descriptions - #428

Merged
tonybaltovski merged 1 commit into
clearpathrobotics:jazzyfrom
andyhetianjun:fix/kinova-duplicate-sensors-system
Nov 30, 2026
Merged

tonybaltovski merged 1 commit into
clearpathrobotics:jazzyfrom
andyhetianjun:fix/kinova-duplicate-sensors-system

Conversation

@andyhetianjun

Copy link
Copy Markdown
Contributor

Description

When is_sim is true, kinova_gen3_6dof.urdf.xacro and kinova_gen3_7dof.urdf.xacro add the ignition::gazebo::systems::Sensors plugin to the robot model. All of the clearpath_gz worlds already load the Sensors system at the world level, so with a Kinova arm on the robot Gazebo ends up running two of them, and it segfaults once the render thread starts (the "already exists" errors and crash in #400).

This PR removes that <gazebo><plugin .../></gazebo> block from both files. The wrist rgbd_camera sensor stays as it is, and the world's Sensors system picks it up the same way it does for the lidars and cameras in clearpath_sensors_description. The A200 description had the same plugin removed back in 2023 ("Jackal sim support"), so this follows that.

The issue was reported on Humble. I based this on jazzy as CONTRIBUTING asks, and the same patch applies cleanly to humble, so it could get the backport-humble label if that works for you.

Related issue

Fixes #400

Type of change

  • Bug fix

How has this been tested?

I don't have ROS or Gazebo on my machine, so I checked it at the URDF level instead of in the simulator. There are no tests for the manipulator xacros in this repo, so I didn't add one.

I made a small wrapper xacro that includes kinova_gen3_6dof (or 7dof) and a hokuyo_ust, ran it through xacro (2.1.1 from pip) with is_sim:=true use_manipulation_controllers:=true, and counted the systems::Sensors plugins in the output:

  • Before: 1 Sensors system in the robot model for both arms (plus the one from the world makes two).
  • After: 0 for both arms. The camera_sensor rgbd sensor and the lidar sensor are still in the output.
  • With is_sim:=false the output has no Sensors system before or after.

I ran the same check on humble with the patch applied (I pointed $(find kortex_description) at a dummy directory, since only mesh paths use it) and got the same before and after results.

pre-commit run passes on the two changed files. I couldn't run colcon build/colcon test or try it in Gazebo myself. The issue author already confirmed with ign gazebo -s that the crash goes away with only one Sensors system loaded.

One thing I noticed but didn't touch: on jazzy, axis_q62.urdf.xacro and axis_dome_fixed.urdf.xacro also add a gz::sim::systems::Sensors plugin to the model. I didn't test whether that causes the same problem, so I left them alone.

Checklist

  • I have read and followed the contributing guidelines
  • The workspace builds (colcon build) (not run, no ROS install)
  • Tests pass (colcon test) (not run, no ROS install)
  • The generator tests pass (no generator code changed)
  • I have added or updated tests where appropriate
  • I have updated documentation where appropriate

…va Gen3 descriptions.

The world already loads the Sensors system. Loading a second one from the
robot model crashes Gazebo when it starts rendering sensors. The wrist
camera sensor is kept and is served by the world's Sensors system.

Fixes clearpathrobotics#400
@andyhetianjun
andyhetianjun requested a review from a team as a code owner November 26, 2026 22:03
@andyhetianjun
andyhetianjun requested review from luis-camero, mibrahim-cpr, nnarain-cpr and tonybaltovski and removed request for a team November 26, 2026 22:03
@mergify

mergify Bot commented Nov 26, 2026 •

Copy link
Copy Markdown

This pull request is merged.

@tonybaltovski
tonybaltovski merged commit def591d into clearpathrobotics:jazzy Nov 30, 2026
11 of 12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Kinova Gen3 xacro loads a second Sensors system, crashing ign-gazebo when the world also loads one

3 participants