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: 3,019 times
Last updated: Apr 07 '22
Gazebo 9 crash when setting fixed joint with <preserveFixedJoint>
Controller kuka_lwr/arm_position_controller failed with error GOAL_TOLERANCE_VIOLATED:
Can I access the RT factor value from node or plugin?
Ray sensor not showing on urdf robot
Gazebo does not show spawned model
Wheel-terrain interaction with Gazebo
Gazebo 9 crashes on Windows Subsystem for Linux