Gazebo | Ignition | Community
Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Simulated raytrace in Gazebo

Hello,

I have an application where I have a camera attached to the end of a 5-DOF robot arm (X, Y, Z, yaw, pitch). The robot arm is moving the camera around a fixed object (0,0,0) for inspection purposes. Given the position and orientation of the camera, is it possible to detect what the the camera is seeing? For example, I would like to know whether the camera is looking at the object, and if so, determine the world coordinates of the object the camera is looking at.

Given the known camera axis (position/orientation), is it possible to extend a line along the +x-axis and see where it hits the fixed object (if it all)?

Thanks

Simulated raytrace in Gazebo

Hello,

I have an application where I have a camera attached to the end of a 5-DOF robot arm (X, Y, Z, yaw, pitch). The robot arm is moving the camera around a fixed object (0,0,0) for inspection purposes. Given the position and orientation of the camera, is it possible to detect what the where on the object the camera is seeing? For example, I would like to know whether the camera is looking at axis of the camera is intersecting the object, and if so, determine the world exact coordinates of the object the camera is looking at.axis is intersecting.

Given the known camera axis (position/orientation), is it possible to extend a line along the +x-axis and see where it hits the fixed object (if it all)?

I should be able to calculate positions along the +x-axis moving outwards from the camera frame. However, I do not know how to check if these points are contained inside of the fixed object of interest. Would also be nice if something already existed for this, or at least something I can use to help.

Thanks