Gazebo | Ignition | Community
Ask Your Question

azazdeaz's profile - activity

2023-06-06 10:46:11 -0600 marked best answer Query the dimensions of a model

Is there a way to get the dimensions of an object in (Ignition) Gazebo? I guess it's solvable by implementing a custom plugin, but are there any simpler ways? Maybe a service i'm missing?

Update: To clarify, i want to know is the width/height/depth of a model's bounding box downloaded from fuel. I think this is what the ModelPhotoShoot plugin does internally: https://github.com/gazebosim/gz-sim/b...

2023-06-04 21:08:43 -0600 received badge  Famous Question (source)
2023-06-02 09:11:00 -0600 received badge  Notable Question (source)
2023-06-01 07:37:13 -0600 edited question Query the dimensions of a model

Query the dimensions of an object Is there a way to get the dimensions of an object in (Ignition) Gazebo? I guess it's s

2023-05-31 10:26:26 -0600 received badge  Popular Question (source)
2023-05-31 06:14:00 -0600 commented question Query the dimensions of a model

Thanks! I updated the question. I was thinking the size of a model, but if there is a solution for querying the bounding

2023-05-31 06:11:34 -0600 edited question Query the dimensions of a model

Query the dimensions of an object Is there a way to get the dimensions of an object in (Ignition) Gazebo? I guess it's s

2023-05-31 06:10:05 -0600 edited question Query the dimensions of a model

Query the dimensions of an object Is there a way to get the dimensions of an object in (Ignition) Gazebo? I guess it's s

2023-05-30 13:34:46 -0600 asked a question Query the dimensions of a model

Query the dimensions of an object Is there a way to get the dimensions of an object in (Ignition) Gazebo? I guess it's s

2023-04-02 23:18:15 -0600 received badge  Notable Question (source)
2023-03-22 11:37:53 -0600 received badge  Notable Question (source)
2023-03-20 03:08:53 -0600 marked best answer How to spawn sdf object in Ignition Gazebo?

How can I spawn a model into a running simulation in Ignition Gazebo? I'm looking for something like rosrun gazebo spawn_model but for Ignition.

This was the closest thing I found but I couldn't get it working so far: https://github.com/ignitionrobotics/r...

2023-03-15 10:16:56 -0600 marked best answer What is the difference between `--headless-rendering` and the `-s` CLI options?

In Ignition Gazebo Fortress the CLI --help says:

  --headless-rendering         Run rendering in headless mode      
  -s                           Run only the server (headless mode). This        
                               overrides -g, if it is also present.

What is the difference between --headless-rendering and the -s CLI options?

2023-02-21 03:11:24 -0600 received badge  Famous Question (source)
2023-02-21 03:11:24 -0600 received badge  Notable Question (source)
2023-02-21 03:11:24 -0600 received badge  Popular Question (source)
2023-02-20 08:43:32 -0600 asked a question What is the difference between `--headless-rendering` and the `-s` CLI options?

What is the difference between `--headless-rendering` and the `-s` CLI options? In Ignition Gazebo Fortress the CLI --he

2023-01-23 12:04:29 -0600 received badge  Popular Question (source)
2023-01-10 01:26:03 -0600 edited question Can Gazebo import normal, roughness and other maps of a Wavefront OBJ object?

Can Gazebo import normal, roughness and other maps of a Wavefront OBJ object When I use an .obj as mesh in the SDF file,

2023-01-09 16:58:28 -0600 received badge  Famous Question (source)
2023-01-09 16:58:28 -0600 received badge  Notable Question (source)
2023-01-09 16:58:28 -0600 received badge  Popular Question (source)
2023-01-08 11:48:16 -0600 asked a question Can Gazebo import normal, roughness and other maps of a Wavefront OBJ object?

Can Gazebo import normal, roughness and other maps of a Wavefront OBJ object When I use an .obj as mesh in the SDF file,

2023-01-08 11:36:49 -0600 asked a question Wait for Gazebo start in ROS2 launch file?

Wait for Gazebo start in ROS2 launch file? Is there a way to wait until Ignition Gazebo initializes using RegisterEventH

2023-01-05 08:26:20 -0600 received badge  Popular Question (source)
2023-01-02 02:53:44 -0600 received badge  Famous Question (source)
2022-12-21 05:10:50 -0600 received badge  Popular Question (source)
2022-12-21 05:10:50 -0600 received badge  Famous Question (source)
2022-12-21 05:10:50 -0600 received badge  Notable Question (source)
2022-12-20 22:55:19 -0600 received badge  Student (source)
2022-12-20 01:38:54 -0600 commented answer How to debug: [ros_gz_bridge]: Failed to create a bridge for topic

Thank you!

2022-12-20 01:34:32 -0600 marked best answer How to debug: [ros_gz_bridge]: Failed to create a bridge for topic

Hi There,

ros_gz_bridge reports failure while the parameters seem to be correct:

$ ros2 run ros_gz_bridge parameter_bridge /cmd_vel@geometry_msgs/Twist@gz.msgs.Twist
[INFO] [1671392523.581891853] [ros_gz_bridge]: Creating GZ->ROS Bridge: [/cmd_vel (gz.msgs.Twist) -> /cmd_vel (geometry_msgs/Twist)] (Lazy 0)
[WARN] [1671392523.582115037] [ros_gz_bridge]: Failed to create a bridge for topic [/cmd_vel] with ROS2 type [/cmd_vel] to topic [geometry_msgs/Twist] with Gazebo Transport type [gz.msgs.Twist]

I'm using Gazebo Garden on the osrf/ros:humble-desktop Docker image. I have a robot in the simulation that i can control with the Teleop widget on the /cmd_vel topic. I installed the ros-humble-ros-gz-bridge with apt.

What else should i check to find the cause of the issue?

Update
Using ignition.msgs.Twist instead of gz.msgs.Twist removes the error, (even though i'm using Gazebo Garden). But the messages are still not transferred.

It seems like Gazebo is using the gz. version of the message. This could explain why ROS2 messages have no effect on the simulation:

gz topic -i -t  /cmd_vel 
Publishers [Address, Message Type]:
  tcp://172.17.0.1:39535, ignition.msgs.Twist
  tcp://172.17.0.1:42165, gz.msgs.Twist

Maybe i don't have some ROS message definitions installed? I installed gz-garden and ros-humble-gazebo-msgs from the official PPA.

For more info, ros2 topic info with the bridge, teleop_keyboard, and a ros2 echo running:

ros2 topic info -v /cmd_vel
Type: geometry_msgs/msg/Twist

Publisher count: 2

Node name: ros_gz_bridge
Node namespace: /
Topic type: geometry_msgs/msg/Twist
Endpoint type: PUBLISHER
GID: 01.0f.50.71.51.ab.45.39.01.00.00.00.00.00.12.03.00.00.00.00.00.00.00.00
QoS profile:
  Reliability: RELIABLE
  History (Depth): UNKNOWN
  Durability: VOLATILE
  Lifespan: Infinite
  Deadline: Infinite
  Liveliness: AUTOMATIC
  Liveliness lease duration: Infinite

Node name: teleop_twist_keyboard
Node namespace: /
Topic type: geometry_msgs/msg/Twist
Endpoint type: PUBLISHER
GID: 01.0f.50.71.da.d3.49.82.01.00.00.00.00.00.11.03.00.00.00.00.00.00.00.00
QoS profile:
  Reliability: RELIABLE
  History (Depth): UNKNOWN
  Durability: VOLATILE
  Lifespan: Infinite
  Deadline: Infinite
  Liveliness: AUTOMATIC
  Liveliness lease duration: Infinite

Subscription count: 2

Node name: ros_gz_bridge
Node namespace: /
Topic type: geometry_msgs/msg/Twist
Endpoint type: SUBSCRIPTION
GID: 01.0f.50.71.51.ab.45.39.01.00.00.00.00.00.13.04.00.00.00.00.00.00.00.00
QoS profile:
  Reliability: RELIABLE
  History (Depth): UNKNOWN
  Durability: VOLATILE
  Lifespan: Infinite
  Deadline: Infinite
  Liveliness: AUTOMATIC
  Liveliness lease duration: Infinite

Node name: _ros2cli_205184
Node namespace: /
Topic type: geometry_msgs/msg/Twist
Endpoint type: SUBSCRIPTION
GID: 01.0f.50.71.80.21.50.1f.01.00.00.00.00.00.05.04.00.00.00.00.00.00.00.00
QoS profile:
  Reliability: RELIABLE
  History (Depth): UNKNOWN
  Durability: VOLATILE
  Lifespan: Infinite
  Deadline: Infinite
  Liveliness: AUTOMATIC
  Liveliness lease duration: Infinite
2022-12-20 01:33:42 -0600 received badge  Notable Question (source)
2022-12-19 08:14:27 -0600 received badge  Popular Question (source)
2022-12-19 05:16:11 -0600 commented question How to debug: [ros_gz_bridge]: Failed to create a bridge for topic

For reference, a question about probably the same issue on robotics.stackexchange: https://robotics.stackexchange.com/qu

2022-12-19 05:14:29 -0600 received badge  Editor (source)
2022-12-19 05:14:29 -0600 edited question How to debug: [ros_gz_bridge]: Failed to create a bridge for topic

How to debug: [ros_gz_bridge]: Failed to create a bridge for topic Hi There, ros_gz_bridge reports failure while the p

2022-12-18 13:56:55 -0600 asked a question How to debug: [ros_gz_bridge]: Failed to create a bridge for topic

How to debug: [ros_gz_bridge]: Failed to create a bridge for topic Hi There, ros_gz_bridge reports failure while the p

2022-12-06 08:37:55 -0600 asked a question ros_ign_bridge with ROS2 Dashing or Eloquent

ros_ign_bridge with ROS2 Dashing or Eloquent As i see, there is no ros_ign_bridge rosdep package for ROS2 Dashing or Elo

2022-11-28 10:08:50 -0600 received badge  Popular Question (source)
2022-11-18 03:13:03 -0600 asked a question Can we create joints between different models

Can we create joints between different models Is it possible to create a joint between two models in Gazebo? I saw some

2022-11-18 02:56:50 -0600 received badge  Enthusiast
2022-11-01 12:18:29 -0600 asked a question How to get the Tracked Vheicle and Conveyor examples working?

How to get the Tracked Vheicle and Conveyor examples working? Hey all, i'm trying to run the tracked_vehicle_simple.sdf