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

gps_goal package - The robot goes in the opposite direction of the target

asked 2021-03-31 21:22:46 -0600

xzhan mike gravatar image

I am using the below message to send the goal to the robot. The robot can travel to the correct latitude position but opposite longitude position. For example, the goal is at the top left of the robot. The robot will travel to the top right. If the goal is at the top right of the robot. Then the robot will travel to the top left. Any possible solutions? Thank you!

{ "op": "publish", "topic": "/gps_goal_fix", "msg": { "status": { "status": 2, "service": 0 }, "altitude": -0.03936214196751092, "longitude": 8.9002013431619637, "position_covariance": [741985448272.8313, -1628874706.209279, -437539014936.25494, -1628874706.2092788, 3575855.5841113734, 960525891.8060722, -437539014936.25494, 960525891.8060722, 258010975871.58453], "header": { "stamp": { "secs": 681, "nsecs": 683000000 }, "frame_id": "wheel_base_link", "seq": 6813 }, "latitude": 49.90000046264395, "position_covariance_type": 3 } }

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2021-12-02 17:54:21 -0600

risbo6 gravatar image

This package will only work if your world frame has its x-axis aligned with the north and its y-axis aligned with the east. Your y-axis is probably aligned with the west.

This has caused me some trouble as well since there is no mention of that in the documentation.

edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2021-03-31 21:22:46 -0600

Seen: 73 times

Last updated: Mar 31 '21