ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question
0

Imu data not using pitch or roll

asked 2017-06-07 08:09:44 -0600

BlastMcGuirk gravatar image

I am working on getting my Turtlebot 2 to detect a change in slope. I was hoping to use the built in gyroscope in kobuki to detect when the pitch changes more than some arbitrary number. The problem is, that the Imu data is only showing 0's for both x, and y. Is there any way to "activate" the gyro to use all three orientations? The covariance for these values are also 0. It looks like this

header:
  seq: 213
  stamp:
    secs: 14...
    nsecs: 85...
  frame_id: gyro_link
orientation:
  x: 0.0
  y: 0.0
  z: 0.02248192
  w: .99925125
orientation_covariance: [1.79769206832e+308, 0.0, 0.0, 0.0, 1.79769206832e+308, 0.0, 0.0, 0.0, 0.05]
angular_velocity:
  x: 0.0
  y: 0.0
  z: -.01188310581
angular_velocity_covariance: [same as orientation_covariance]
linear_acceleration:
  x: 0.0
  y: 0.0
  z: 0.0
linear_acceleration_covariance: [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0]
edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2017-06-07 10:45:30 -0600

Haibo gravatar image

It seems Turtlebot 2 is using 1-axis gyro. For your application, you may need to add an external 3-axis gyro.

edit flag offensive delete link more

Comments

The turtlebot 2 comes with a 3-axis gyro, as shown on this site here: http://www.robotnik.es/web/wp-content... also, when i use a turtlebot 2 in Gazebo, it uses all 3 axes too.

BlastMcGuirk gravatar image BlastMcGuirk  ( 2017-06-07 11:41:33 -0600 )edit

Question Tools

2 followers

Stats

Asked: 2017-06-07 08:09:44 -0600

Seen: 216 times

Last updated: Jun 07 '17