How to designate a certain point by simple mouse-click?
Hello, I'm using ROS kinetic with Ubuntu 16.04.
If someone who has used amcl_node
ever before here, I think you would be familiar with designating certain points by mouse-click ('2D Nav Goal' button) in rviz
interface.
The following is my works:
Launch simulation of an agent robot.
Launch a certain node with regard to
rviz
API. (view_navigation.launch
)To give a goal point to the robot, designate a certain goal point of
2D Nav Goal
inrviz
interface by mouse-click.
And I have no idea how to get a certain goal point I designate by mouse-click.
How can I set that kind of work and subscribe to the goal point?
The only one I want to do is to get a goal point I clicked in rviz
interface without any other unnecessary packages like amcl_path_planner
.
Would you please give me great advice?
Thanks in advance. :)