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 -0600
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 -0600
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 -0600
Seen: 3,051 times
Last updated: Apr 07 '22
Possible to install Gazebo and Rviz in Cloud VM?
Gazebo does not show spawned model
How to get object dimension using RayShape ?
Querying collision geometry primitives from ROS in Gazebo 9?
Swarm robotics in ROS-Gazebo. Facing very odd errors.
How can I disable GPS in gazebo and use the gps coord from ros?