Skip to content
Discussion options

You must be logged in to vote

We don't have an example using IR sensors for obstacle avoidance, but in the create3_sim we use IR sensors for wall follow so you can get a sense of how the datatype is used:
https://github.com/iRobotEducation/create3_sim/blob/7fc5109dbe2550a7144335d00d20370a96acad9f/irobot_create_common/irobot_create_nodes/src/motion_control/wall_follow_states.cpp#L146
Note, the simulator is not accurately simulating the raw sensor data. The IR sensor is an analog sensor that will have a very different scale depending on the reflectivity of the surface (ex: a white surface will give a much higher analog value than a dark surface). Hopefully that is enough to get you started

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by justinIRBT
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
forum_create3_api Forum post about how to use Create 3 APIs
2 participants