gazebosim / gz-sim

Open source robotics simulator. The latest version of Gazebo.
https://gazebosim.org
Apache License 2.0
619 stars 251 forks source link

Can't start new worlds #2438

Closed rfpg1 closed 3 weeks ago

rfpg1 commented 3 weeks ago

Environment

OS Version: Ubuntu 24.04 Binary install: Gazebo Harmonic LTS

Details

Im new to gazebo and still trying to understand how it works

Just installed gazebo harmonic on a fresh install of Ubuntu 24.04, also have ros2 jazzy if it matter

However i can't do gz sim shapes.sdf

Get this error:

The 'gz' command provides a command line interface to the Gazebo Tools.

 gz <command> [options]

List of available commands:

  help:          Print this help text.
  log:           Record or playback topics.
  msg:           Print information about messages.
  param:         List, get or set parameters.
  service:       Print information about services.
  topic:         Print information about topics.

Options:

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

Description

Expected behavior: Shouldn't a world open? Actual behavior: Nothing happens

Steps to reproduce

  1. Install Gazebo Harmonic TLS from source
  2. Try to do gz sim

Help

If you need more information let me know

Thanks for your help

rfpg1 commented 3 weeks ago

Updates Found the actual problem, I have ros2 jazzy when i installed: sudo apt install ros-jazzy-ros-gz-bridge lost access to gz sim and some others

Previous output of gz:

The 'gz' command provides a command line interface to the Gazebo Tools.

  gz <command> [options]

List of available commands:

  help:          Print this help text.
  fuel:          Manage simulation resources.
  gui:           Launch graphical interfaces.
  launch:        Run and manage executables and plugins.
  log:           Record or playback topics.
  model:         Print information about models.
  msg:           Print information about messages.
  param:         List, get or set parameters.
  plugin:        Print information about plugins.
  sdf:           Utilities for SDF files.
  service:       Print information about services.
  sim:           Run and manage the Gazebo Simulator.
  topic:         Print information about topics.

Options:

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

Current output of gz:

The 'gz' command provides a command line interface to the Gazebo Tools.

  gz <command> [options]

List of available commands:

  help:          Print this help text.
  log:           Record or playback topics.
  msg:           Print information about messages.
  param:         List, get or set parameters.
  service:       Print information about services.
  topic:         Print information about topics.

Options:

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

Any ideas?

Edit:

Typo

rfpg1 commented 3 weeks ago

Tried to uninstall but didn't solve and i need that bridge so wouldn't be a solution anyway

rfpg1 commented 3 weeks ago

Managed to fix this

All I had to do was: ros-jazzy-gz-sim-vendor as mencioned here: https://community.gazebosim.org/t/gazebo-harmonic-packages-available-on-ubuntu-noble/2772/8