Ask Your Question
0

Mouse position to map coordinates in Rviz?

asked 2018-03-06 16:58:39 -0600

sy126 gravatar image

Hi, I'm trying to find a way of clicking on the map in Rviz and obtaining the coordinates of the map itself at that point. Is there a way of going about this?

edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted
0

answered 2018-03-07 02:07:41 -0600

gvdhoorn gravatar image

updated 2018-03-07 02:09:17 -0600

This is a duplicate of #q69019. See that question for a few options which may be used to get this sort of info. They're all not really meant for it, but it works well enough for some use-cases.

edit flag offensive delete link more
0

answered 2018-03-07 01:26:12 -0600

Delb gravatar image

I don't think you can do that but it would be a great feature in Rviz.

What you can do is using the Focal Point (in the View pannel on the right you have its coordinates). Since you know the origin of the map is the top left corner, if it's (0;0;0) then the position of the focal point gives you directly the coordinates and if not you just have to check the offset and add it to the focal point coordinates.

That's not precise, but better than nothing.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

Stats

Asked: 2018-03-06 16:58:39 -0600

Seen: 404 times

Last updated: Mar 07 '18