How to get cliff sensors data using ROS2? #62
-
Where is /cliff_state topic? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 9 replies
-
Where are you finding documentation about this topic? If the robot experiences a cliff, that is exposed in /hazard_detection. I searched the API documentation and I don't see reference to a "/cliff_state" topic. |
Beta Was this translation helpful? Give feedback.
-
There is no "/cliff_state" topic on Create 3; to determine which cliff is triggering, see the documentation of the Hazard Detection message. In the hazard detection vector, each hazard has a type and a header. The header will have the frame id of the hazard that is triggering, so it will tell you which of the 4 cliffs is associated with the triggered hazard. |
Beta Was this translation helpful? Give feedback.
There is no "/cliff_state" topic on Create 3; to determine which cliff is triggering, see the documentation of the Hazard Detection message. In the hazard detection vector, each hazard has a type and a header. The header will have the frame id of the hazard that is triggering, so it will tell you which of the 4 cliffs is associated with the triggered hazard.