ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question
0

the position of the detected object is not correct!!

asked 2022-05-25 13:40:41 -0600

Delbina gravatar image

hi,

after launching find_3d_object.launch, i can see that the position of the detected object is not correct: in the following you can see one example. i have considered camera_color_optical_frame as the fixed frame. so i expect that the objects on the right hand side of my camera have a positive x and negative y, and positive for both x and y for those objects on the left side. but you can see that for the objects in the left side, both x and y are negative? why? i have considered: X forward Y left Z up

one more thing is that we expect by the movement of the vehicle toward objects, distance between them decrease, but the output sometime is increase and sometimes decrease.!!!!

image description

object_44 in the left sie, this is the plot about x position over time, from the time that it has been detected, and up to the time that the object disappear from the point of view of camera (vehicle is moving on the railway track)

image description

object on the right hand.

image description

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
1

answered 2022-09-05 23:34:27 -0600

matlabbe gravatar image

The object position is in camera optical frame as stated in the terminal, so x->right, y->down, z->forward. So if you are looking X, as you move towards the objects: for object on left of the track, X will decrease over time (appear going left of the image); for object on right of the track, X will increase over time (appear going right of the image).

The position is relative the center of the lens, so X is negative if left side and positive on right side of the image. For Y, it is negative if appearing over the center and positive if appearing below the center.

If you are interested in distance instead, watch the Z value instead. There could be variation depending of the noise of the disparity image computed by your stereo camera.

edit flag offensive delete link more

Question Tools

2 followers

Stats

Asked: 2022-05-25 13:40:41 -0600

Seen: 107 times

Last updated: Sep 05 '22