Hazard detection node #203
-
Hello! I'm working on a node subscribed to HazardDetectionVector. What I would like to do is simply to detect a bump and move accordingly but for some reason I can't seem to unpack the information needed from the message. I would just need to get the correct frame id and the error type, below is my code.
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
detections is a vector inside the hazard detection message. The frame of the hazard is inside the header of the object in the vector. For something along these lines, see the vector usage in the callback method (this is untested code, so may not work as is):
|
Beta Was this translation helpful? Give feedback.
detections is a vector inside the hazard detection message. The frame of the hazard is inside the header of the object in the vector. For something along these lines, see the vector usage in the callback method (this is untested code, so may not work as is):