Package version: I cloned the source repo 2 days back only (if from repository, give version from sudo dpkg -s ros-$ROS_VERSION-clearpath-simulator, if from source, give commit hash)
Expected behaviour
Simulation should work.
Actual behaviour
Robot doesn't spawn in simulation.
Gazebo opens but robot is not present because the platform launch file is not generated
[generate_launch-5] Traceback (most recent call last):
[generate_launch-5] File "/home/dev/clearpath_ws/install/clearpath_generator_gz/lib/clearpath_generator_gz/generate_launch", line 47, in <module>
[generate_launch-5] main()
[generate_launch-5] File "/home/dev/clearpath_ws/install/clearpath_generator_gz/lib/clearpath_generator_gz/generate_launch", line 42, in main
[generate_launch-5] glg = GzLaunchGenerator(setup_path)
[generate_launch-5] File "/home/dev/clearpath_ws/install/clearpath_generator_gz/local/lib/python3.10/dist-packages/clearpath_generator_gz/launch/generator.py", line 204, in __init__
[generate_launch-5] self.prefix_launch_arg,
[generate_launch-5] AttributeError: 'GzLaunchGenerator' object has no attribute 'prefix_launch_arg'
[ERROR] [generate_launch-5]: process has died [pid 51814, exit code 1, cmd '/home/dev/clearpath_ws/install/clearpath_generator_gz/lib/clearpath_generator_gz/generate_launch -s /home/dev/clearpath/ --ros-args -r __node:=generate_launch'].
I think it happens because self.prefix_launch_arg is not defined in the source but is present in the pre-built package. My other laptop uses the apt install, and I learned the difference that way.
This is how it appears in the deb packages
# Prefix launch arg
self.prefix_launch_arg = LaunchFile.LaunchArg(
'prefix',
default_value='/world/warehouse/model/robot/link/base_link/sensor/',
description='Ignition sensor topic prefix'
)
prefix_variable = LaunchFile.Variable('prefix')
self.platform_components dictionary is also different for A200
Platform.A200: [
self.cmd_vel_node,
self.odom_base_node,
self.prefix_launch_arg,
],
This is how it is present in the source build.
There is no definition for self.prefix_launch_arg and its also missing in the keys
Please provide the following information:
Package version: I cloned the source repo 2 days back only (if from repository, give version from
sudo dpkg -s ros-$ROS_VERSION-clearpath-simulator
, if from source, give commit hash)Expected behaviour Simulation should work.
Actual behaviour Robot doesn't spawn in simulation.
To Reproduce Provide the steps to reproduce:
ros2 launch clearpath_gz simulation.launch.py
I think it happens because self.prefix_launch_arg is not defined in the source but is present in the pre-built package. My other laptop uses the apt install, and I learned the difference that way.
This is how it appears in the deb packages
This is how it is present in the source build. There is no definition for self.prefix_launch_arg and its also missing in the keys
Other notes FYI, There might be other differences that I didn't check. Robot spawns after adding these lines to the source build.