How can I know if robots are seeing each other? [closed]

asked 2018-10-06 08:45:54 -0600

topkek gravatar image

I have two robots in navigation in gazebo simulation. How can I find out if they are facing each other, or the direction they are looking at? I tried looking at /odom and orientation.w because thats the only thing that changed when I rotate one robot...

edit retag flag offensive reopen merge delete

Closed for the following reason the question is answered, right answer was accepted by topkek
close date 2018-10-13 10:18:17.570307

Comments

1

If you just want to know the direction they're facing then orientation is correct (keep it mind it is in quaternion format). Whether they can see each other depends on how you define "see" (i.e., what is the robots field of view), but ultimately would just be pretty simple geometry.

stevejp gravatar imagestevejp ( 2018-10-06 11:11:56 -0600 )edit