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

ımu position on robot

asked 2015-08-26 01:51:57 -0500

osmancns gravatar image

ı want use to imu on my robot. But ı cant understan how do I place my imu on my roboy. so imu see to which direction ?

my imu :

the feed direction robot will be imu's x direction ??

edit retag flag offensive close merge delete

1 Answer

Sort by » oldest newest most voted

answered 2015-08-26 03:00:11 -0500

it looks like the code takes this into account

Source file is here

// IMU outputs [w,x,y,z], convert to [x,y,z,w] & transform to ROS axes
    imu_msg.orientation.x =  r.quat.get_scaled(1);
    imu_msg.orientation.y = -r.quat.get_scaled(2);
    imu_msg.orientation.z = -r.quat.get_scaled(3);
    imu_msg.orientation.w = r.quat.get_scaled(0);

so looks like you put it with the x pointing forwards from the robot, fixing the device so the it looks the right way up from its packaging - the code flips the values round to match right hand rule.

edit flag offensive delete link more


Thanks @nickw. you think is it correct in this way : ?????

osmancns gravatar image osmancns  ( 2015-08-26 06:40:56 -0500 )edit

@nickw ı am not sure ???

osmancns gravatar image osmancns  ( 2015-08-27 02:01:42 -0500 )edit

I would expect that to be correct - the test now is to run the node and check the values you get make sense and change in the way you would expect to if you change the robots orientation.

nickw gravatar image nickw  ( 2015-08-27 02:50:25 -0500 )edit

yes you are right...

osmancns gravatar image osmancns  ( 2015-08-28 02:53:41 -0500 )edit

Question Tools

1 follower


Asked: 2015-08-26 01:51:57 -0500

Seen: 1,018 times

Last updated: Aug 26 '15