Gazebo | Ignition | Community
Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

The gazebo Scene class has a FirstContact function that probably helps you achieve what you want. If you want to use the camera's optical axis, set the mousePos to (0, 0). The last arg gives the intersection point