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

imu mpu9250 unstable in rviz

asked 2020-08-17 09:33:42 -0600

Ahmed_Desoky gravatar image

updated 2020-08-17 11:17:16 -0600

I am using mpu9250 in a differential drive mobile robot.

i am using this package jeskesen /i2c_imu .

My problem is that the robot is unstable in rvize after launching imu package although the robot is still at its zero position and there is no cmd_vel. (the robot rotates around its base_link origin in yaw, pitch, and roll.) and base_link, imu_link, and the four wheels links are rotate also).

Those are the imu outputs although the real robot does not move or rotate: orientation:
angular_velocity:
linear_acceleration:
base_link small rotation this image is screen shot during the rotation or the rotational vibration.

base link with odom >> this image is screen shot during the rotation or the rotational vibration.>>>> in this case I rotated the real robot, then the imu rotated also but return frequently to its zero rotation.

screen shot of robot with heading but it returns frequently to its zero rotation

This is the launch file

<launch>
    <node pkg="tf" type="static_transform_publisher" name="imu_to_base" 
        args="0 0 0 0 0 0 base_link imu_link 50" /> 
    <node pkg="i2c_imu" type="i2c_imu_node" name="i2c_imu" output="screen" >
    <rosparam file="$(find i2c_imu)/param/imu.yaml"/>       
    </node>

This is imu.yaml file

imu_type: 7
imu_frame: imu_link
i2c_bus: 1 
i2c_slave_address: 104
fusion_type: 2

mpu9150:
  #Sample Rates  
  compass_sample_rate: 25      # 40
   gyro_accel_sample_rate: 50   # 80


  #Accel
  accel_low_pass_filter: 3
  accel_full_scale_range: 8  # 16

   #Gyro
   gyro_low_pass_filter: 3
   gyro_full_scale_range: 8   # 16
edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2020-08-21 04:08:08 -0600

Ahmed_Desoky gravatar image

It is unstable because I was used odometry node with Imu

edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2020-08-17 09:33:42 -0600

Seen: 353 times

Last updated: Aug 21 '20