Get co-ordinates of mouse click in Gazebo
HI! I am using gazebo-9 with ros-melodic. I want to get the coordinates of mouse click on Gazebo GUI in a python Code.
asked 2022-04-07 05:18:28 -0500
This post is a wiki. Anyone with karma >75 is welcome to improve it.
HI! I am using gazebo-9 with ros-melodic. I want to get the coordinates of mouse click on Gazebo GUI in a python Code.
answered 2022-05-14 03:28:49 -0500
This post is a wiki. Anyone with karma >75 is welcome to improve it.
Hi, Is there a way to get the coordinates of a point (x and y coordinates) using the mouse on the gazebo client? Best, I want to be able to read in the cps tester coordinates of a mouse click - preferably using a service, but subscribing to a topic would do - into The position of x-coordinate of the mouse click is found by subtracting the event's x position with the bounding rectangle's x position. The x position of the event is found using the 'clientX' property. The x position of the canvas element, i.e. the left side of the rectangle can be found using the 'left' property.
Asked: 2022-04-07 05:18:28 -0500
Seen: 1,131 times
Last updated: Apr 07 '22
How to update Gazebo 9.0.0 to latest after ROS Melodic Full Desktop Install?
How to add texure to ground plane?
Articulated vehicle control in gazebo and ROS
Can I access the RT factor value from node or plugin?
Rendering bugn after Fresh Install
Simple model always becomes unstable
Still runaway simulations in gazebo
Plugins in Gazebo 9 - ROS Melodic