how to find distance between 2 robots in gazebo via ROS melodic via camera/lidar?
I want to find distance between two robots in gazebo world via ROS. Is there a way to do it ?
The robots have a camera plugin and a lidar plugin installed
- I am planning to process the image and get the pixel data and put a beacon onto a second robot to find locations of beacons. And then use geometry aspects of those pixels to estimate the distance.
what is your question exactly? if this can be done in ROS? Yes, it can and your approach seems feasible.
I wanted to know how to do it in more detailed way? Like will I be able to get image pixel data through stereo camera or do I need to add another kinect or any depth image camera to get pixel data
I feel your question is much more about technical concepts then it is about ROS in general. It is possible to do it? Sure. But you will have to do your own research on how to do it.