Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adjust covariance matrix #107

Closed
saimouli opened this issue Apr 18, 2020 · 2 comments
Closed

Adjust covariance matrix #107

saimouli opened this issue Apr 18, 2020 · 2 comments

Comments

@saimouli
Copy link

Hello,

I am using ROS Melodic and Waffle model and latest commit (6278566). Repo is up-to-date with the current version.

rostopic echo /imu gives:

header:
seq: 12477
stamp:
secs: 14962
nsecs: 36000000
frame_id: "base_footprint"
orientation:
x: 0.0015566085891899162
y: 0.0003276490868402762
z: -0.9788036429173815
w: 0.2047947709963295
orientation_covariance: [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0]
angular_velocity:
x: -0.0005358902335171238
y: -0.0003909577325524005
z: 0.19488579839896925
angular_velocity_covariance: [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0]
linear_acceleration:
x: 5.083136873524716e-05
y: 0.00010048728744395968
z: 2.618836550644121e-07
linear_acceleration_covariance: [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0]

Covariance cannot be zero in the real-world for IMU and needs to reflect that in the simulation. Where can I change the covariance matrix for Imu and odom?
Thanks

@ROBOTIS-Will
Copy link
Contributor

@saimouli
According to the sensor_msgs/Imu, the covariance matrix is set to zero when they are unknown.
In order to change the covariance in simulation, you might need to manipulate the imu topic.
In TurtleBot3 Gazebo simulation, imu_plugin is used to simulate the imu sensor.
Thank you.

@ROBOTIS-Ashe
Copy link
Contributor

This issue has been closed as there weren't recent activities.
Please feel free to reopen this thread if there's any opinion to throw. Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants