Robotics StackExchange | Archived questions

API call for determine new map position

Hi,

Other than using standard trig - is there an API call that give the data below say will return the new position to pass to the navigation stack if I command the robot to move 0.5 meters backwards:

position:
  x: 1.95812040039
  y: 1.32759493657
  z: 0.0
orientation:
  x: 0.0
  y: 0.0
  z: 0.702802831861
  w: 0.71138469166

Thanks

Mark

Asked by MarkyMark2012 on 2017-11-06 16:00:17 UTC

Comments

To answer the second part of your question, if you want to send the robot 0.5 metres backwards, you can send a pose command in the frame of the base_link/base_footprint. Assuming x forward, y left, z up, this command would be pos: -0.5 0 0, rot: 0 0 0 1, header/frame_id: base_link.

Asked by ufr3c_tjc on 2017-11-06 18:10:03 UTC

Otherwise, you can use the transform of base_link -> odom/map to get your position.

Asked by ufr3c_tjc on 2017-11-06 18:11:05 UTC

Answers