Gazebo | Ignition | Community
Ask Your Question
0

IMU added in Gazebo and data published via ROS all zero

asked 2023-03-10 03:13:51 -0500

sslzykk gravatar image

I modified the SDF file, adding the IMU sensor as this: image description

And then I try publishing the IMU data using PYTHON as this: image description

But when I use

rtopic echo /Imu_1

to show the data, they are all zero as this: image description

Where is it I am wrong? Thanks!

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2023-03-13 04:40:57 -0500

When using the imu gazebo_plugin. The plugin will send out automatically his detected IMU parameters depending on his situation in Gazebo environment. So when you are controlling the robot with the cmd_vel the acceleration in x direction of the IMU data will be updated accordingly.

There is no need to send out the IMU data yourself.

Hope this helps.

edit flag offensive delete link more

Comments

Actually I am using PX4-ROS-Gazebo to simulate drone systems, are you familiar with this? The IMU added just publishes all-zero data

sslzykk gravatar imagesslzykk ( 2023-03-14 04:31:37 -0500 )edit

Question Tools

1 follower

Stats

Asked: 2023-03-10 03:13:51 -0500

Seen: 2,298 times

Last updated: Mar 13 '23