Building_map_generator: error: argument command: invalid choice: 'ignition' (choose from 'gazebo', 'nav', 'navgraph_visualization') (#628)

Posted by @01fpcrd:

I am trying to create my own map world in rmf_traffic_editor. However, when running the following command, I encountered an error stating that
““building_map_generator: error: argument command: invalid choice: ‘ignition’ (choose from ‘gazebo’, ‘nav’, ‘navgraph_visualization’)””

source /opt/ros/jazzy/setup.bash
source /home/aoi/Documents/rmf_map_editor/install/setup.bash
ros2 run rmf_building_map_tools building_map_generator ignition hotel_2.building.yaml hotel_2.world ./hotel_2_world

The error message is:

usage: building_map_generator [-h] {gazebo,nav,navgraph_visualization} …
building_map_generator: error: argument command: invalid choice: ‘ignition’ (choose from ‘gazebo’, ‘nav’, ‘navgraph_visualization’)
[ros2run]: Process exited with failure 2

My current environment:
Ubuntu 24.04
ROS 2:Jazzy
Gazebo:GZ Harmonic (LTS)
rmf_traffic_editor version:1.9.2
It seems that the building_map_generator tool does not support ignition. How should I proceed?


Edited by @01fpcrd at 2025-03-05T10:28:37Z

Posted by @aaronchongth:

ros2 run rmf_building_map_tools building_map_generator ignition hotel_2.building.yaml hotel_2.world ./hotel_2_world

You are currently running the command with ignition, as mentioned in your command that you shared. Use gazebo instead.
You can always use the -h command to read the help strings for each argument

Posted by @01fpcrd:

@aaronchongth
Thank you for taking the time to reply.
I saw the phrase “switch arg gazebo to ignition for generating a world file for ignition” on GitHub
from:GitHub - open-rmf/rmf_traffic_editor: GUI, CLI, and ROS 2 messages for robot traffic flows in buildings

So I thought it might be possible to use ignition directly.

Posted by @aaronchongth:

That arg is used for generating a world file for ignition, which in this case is a past version of the simulator, whereas gazebo is for the current version