Amcl initialpose coordinate system
I'm still in the process of learning ros and i have a question regarding the initialpose topic. I'm transforming points from the kinect pcl to map coordinates (for sending goals) and using initalpose orientation to known which way is forward in a map. The problem is that when i get orientation with values: x,y,z = 0,0,-1. Why is z set and not x? Isn't the z axis the axis pointing up?
Thanks.
/initialpose is not published by amcl, but subscribed to. Could you explain how you are using it? It is typically used to give an initial estimate of the robot's position to the localization algorithm.
Sounds like your transform from the kinect frame to /map is wrong. The /map frame of reference should be East, North, Up.
There was a typo. I meant orientation from initialpose topic. I subscribe to /initialpose and output the pose.orientation and the values are 0,0,-1. Im using it only to know which way is forward in the map so for example if i detect a obstacle i know which way the robot should go to move around the
obstacle (where the obstacle size is known).