Hi Guys,
I have another IMU related question; which I shall ask
kinda tongue-in-cheek, just because I can’t resist it. But, I would
appreciate a serious answer.
I’m investigating the utility of a magnetic compass in a
steel structure building environment. Until now, I had thought it pretty
useless since readings tend to have huge errors, up to +/- 180 degrees.
However, perhaps an angle averaged over a sufficiently long distance of travel
will give enough accuracy to assist a poor lost robot in localizing
itself. Looks pretty good so far.
Most current IMUs have a built in magnetometer. My
particular unit (UM7) provides just raw 3-axis magnetometer
readings. I convert them to a compass heading in my code.
While studying my data it occurred to me that I might not be producing heading
to ROS standards.
So, I thought: aircraft (my experience) read in
degrees with North reading zero and increasing with clockwise rotation. So
do boats, many land vehicles and every map I’ve ever seen with numeric
directions. So, what would ROS do? I’m guessing radians with zero
degrees East and counterclockwise. Right?
Assuming “right”, I have a follow-up question.
Consider, 20 years from now, if a human was walking along a Northbound street
with a robot friend, and the human wanted to go to the East side of town but had
lost track of turns and didn’t know what direction he was going. He
asks the robot what (numeric) heading they were on. What does the robot
answer? And what direction would the human turn at the next
intersection?
Or perhaps the robot is so smart (really intelligent
robots are always 20 years in the future; it’s been that way for 50 years) that
it thinks “This human believes in an arbitrary and antiquated direction system,
I must convert the correct direction to degrees, North and clockwise”.
Thanks,
Alex