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

ROS co-ordinate system for orientation

asked 2018-07-24 15:59:49 -0600

flightlesskite gravatar image

updated 2018-07-24 16:00:27 -0600

So I know through reading that the ROS co-ordinate frame follows the right hand rule. So when getting transformation data from a VR device I have to convert:

x= -z, y=-x, z= y

I've managed to map movements of positions correctly, however I'm having trouble with rotations... I tried doing the same mapping for for rotations & it doesn't seem to work. Is there another rule I have to adhere to or another conversion I can do to get correct mapping for orientation (roll, pitch, yaw)? or perhaps a way to find the correct mapping..?


edit retag flag offensive close merge delete


1) What are you trying to do? 2) Did you check this?

fvd gravatar image fvd  ( 2018-07-24 19:56:32 -0600 )edit

Can you provide more info on what your setup looks like? What information is your device reporting (e.g., position, velocity, orientation, acceleration, angular vel)?

stevejp gravatar image stevejp  ( 2018-07-24 19:58:19 -0600 )edit

Hi, I'm trying to map HTC controllers to a Baxter robot through ROS to achieve teleoperation. Right now, I believe I have got the position (x, y ,z) mapped correctly using the right hand rule, but struggling with orientation now...

flightlesskite gravatar image flightlesskite  ( 2018-07-25 05:58:46 -0600 )edit

1 Answer

Sort by ยป oldest newest most voted

answered 2018-07-26 22:24:21 -0600

fvd gravatar image

updated 2018-07-26 22:25:51 -0600

  1. You can convert any left-handed coordinate system to right-handed by flipping the sign of one of its axes. [1] By changing more axes, you are rotating the coordinate system.

  2. A quaternion (x, y, z, w) in a left-handed coordinate system (x,y,z) should simply become (x, y, -z, w) in a right-handed coordinate system (x, y, -z). Please try it out and report back.

[1] Section 3.1. in
[4] Reasoning for the second part of this answer:

edit flag offensive delete link more

Question Tools

1 follower


Asked: 2018-07-24 15:59:49 -0600

Seen: 2,029 times

Last updated: Jul 26 '18