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

how to point and click on rviz map and output the position.

asked 2013-07-25 10:33:21 -0500

Rikardo gravatar image

Can any one tell me how to use mouse to click on a map in Rviz and get the position of this area. Then output it.

edit retag flag offensive close merge delete

3 Answers

Sort by ยป oldest newest most voted
6

answered 2013-07-26 05:22:25 -0500

jep31 gravatar image

If you add a grid and click on with 2D Nav Goal or 2D Pose Estimate. The result is wrote in the terminal and in the topic /initialpose or /move_base_simple/goal. It's only a 2D select but it can be useful. I don't know if a better way exists.

edit flag offensive delete link more

Comments

2

more specifically, you can do this

rostopic echo /initialpose

OR

rostopic echo /move_base_simple/goal

searchrescue gravatar image searchrescue  ( 2016-06-24 11:56:38 -0500 )edit

What then is the use of the botton "publish point" on rviz?

BluPlana gravatar image BluPlana  ( 2017-01-17 01:43:47 -0500 )edit
1

It is published at /clicked_point

raspet gravatar image raspet  ( 2017-04-21 10:12:36 -0500 )edit
9

answered 2017-05-08 03:14:27 -0500

sai gravatar image

updated 2017-05-08 03:16:43 -0500

Go to the Top menu in RVIZ and click on Panels. Under the Panels, tick Selection. Once Selection is enabled, it adds a new Panel called Selection. Then on the RVIZ gui press on select option which is beside Move Camera option.

Then whatever points you select on the point cloud will displayed in the Selection panel.

image description

edit flag offensive delete link more

Comments

but, the coordinate is only the relative position wrt the vehicle?

lochlomond gravatar image lochlomond  ( 2019-08-19 21:14:48 -0500 )edit
4

answered 2019-04-09 00:04:22 -0500

Anchellon gravatar image

Open a new terminal and type rostopic echo /clicked_point

Open Rviz and use Publish a point tool .

Click anywhere on the map .

The result should be instantaneously displayed in the terminal where we have echoed /clicked_point

edit flag offensive delete link more

Comments

1

I have been trying this. I could see that when I select the Publish Point tool, the cursor gets a pin location and when I click a point, it publishes the coordinates in that frame. But most times, the pin location does not appear on my screen. When I am clicking any point, the point does not get published. Am I missing out something?

viswa_1211 gravatar image viswa_1211  ( 2019-05-30 07:32:25 -0500 )edit

@viswa_1211 Unfortunately you need to be able to click on something, to publish that position as a point (i.e., you can't publish points in empty space). One way is to enable the grid. You can then click on the corners. It seems the points are given in the fixed frame that is currently used.

moooeeeep gravatar image moooeeeep  ( 2019-09-09 03:33:35 -0500 )edit

is anyone solving this problem ???

JiangxinKe gravatar image JiangxinKe  ( 2020-11-18 00:26:15 -0500 )edit

Question Tools

1 follower

Stats

Asked: 2013-07-25 10:33:21 -0500

Seen: 20,770 times

Last updated: May 08 '17