Trouble launching gazebo using ign command from terminal

I am following this tutorial https://docs.ros.org/en/foxy/Tutorial…
when i run the following command:
ign gazebo -v 4 -r visualize_lidar.sdf

i get the following output:

The 'ign' command provides a command line interface to the ignition tools.

ign <command> [options]

List of available commands:

help: Print this help text. sdf: Utilities for SDF files. topic: Print information about topics. service: Print information about services. log: Record or playback topics. msg: Print information about messages. plugin: Print information about plugins. fuel: Manage simulation resources.

Options:

--force-version <version> Use a specific library version. --versions Show the available versions. --commands Show the available commands. Use 'ign help <command>' to print help for a command.

why is this happening? how can i run the example?

i installed gazebo using this tutorial.
https://classic.gazebosim.org/tutoria… i am running foxy on ubuntu 20.04 (via VMware on a mac)

The gazebo you installed is classical gazebo and the tutorial you are following is for ignition gazebo.You can install ignition gazebo from https://gazebosim.org/docs and then ign gazebo command should run.

2 Likes

What Harsh_mahesheka_5-ye said is perfect! I wanted to add one more thing. I’ve been using Foxy on Citadel/Fortress so if you want more information or example, check this out!

I got all sensors from there!

i installed ignition gazebo, but when i run the command it doesn’t find the file. i get this output:

[Wrn] [ign.cc:86] Fuel world download failed because Fetch failed. Other errors
Unable to find or download file

thanks for the resource @kakcalu13! what do you do with those launch.py files?
I apologize for the ignorance, I am pretty new to ignition gazebo and ros…

[Wrn] [ign.cc:86] Fuel world download failed because Fetch failed. Other errors
Unable to find or download file

It just means that it can’t find the sdf file. So basically, it doesn’t know where visualize_lidar is or it doesn’t exist yet. You might wanna make a new file for it if it doesn’t exist.

thanks for the resource @kakcalu13! what do you do with those launch.py files?
I apologize for the ignorance, I am pretty new to ignition gazebo and ros…

Been there! I started with Citadel and Foxy without any knowledge. :stuck_out_tongue: So, launch allows you to load more than two files. In this case, it allowed you to load the bridge between foxy and gazebo. In my case, I used it to load rviz, bridge, ros2 program and gazebo at the same time. It’s useful for a project that needs more than one file.

BTW, if you have more questions related to Gazebo, feel free to post it in https://answers.gazebosim.org/questions/ as it involves with a deep technical. If you have a question about ROS2, use this one: https://answers.ros.org/

This community is more likely general question without technical questions. Basically, a surface question I guess. Anyway I’m active in Answers Gazebo! I will try my best to share what I know!

1 Like

thank you @kakcalu13!