Open Mechaick opened 5 months ago
Ugly workaround but works if you're using multiple instances of the same robot.
In clearpath_generator_common/clearpath_generator_common/param/platform.py
replace the namespace with "/**" in line 88.
@@ -88,7 +88,7 @@ class PlatformParam():
# Parameter file to generate
self.param_file = ParamFile(
name=self.parameter,
- namespace=self.namespace,
+ namespace="/**",
path=self.param_path)
Please provide the following information:
Built from source or installed: Installed followin this : https://docs.clearpathrobotics.com/docs/ros/tutorials/simulator/install
Expected behaviour I am launching a simulation using
ros2 launch clearpath_gz simulation.launch.py rviz:=true setup_path:=$HOME/clearpath/cp1
and spawning an additional robot using
ros2 launch clearpath_gz robot_spawn.launch.py setup_path:=$HOME/clearpath/cp5
And I should expect a robot completely working.
Actual behaviour I cannot drive the second robot.
The simulation give the following error messages:
[ruby $(which ign) gazebo-1] [ERROR] [1704465289.453031469] [a200_0005.controller_manager]: The 'type' param was not defined for 'joint_state_broadcaster'. [ruby $(which ign) gazebo-1] [ERROR] [1704465289.533124046] [a200_0005.controller_manager]: The 'type' param was not defined for 'platform_velocity_controller'.
And the spawner:
To Reproduce Provide the steps to reproduce: