In this post you'll learn how to program a robot to avoid obstacles using ROS2 and C . Before anything else, make sure you have the rosject from the previous post, you can copy it from here. Launch the simulation in one webshell and in a different tab, checkout the topics we have available. The obstacle avoidance intelligence goes inside the method calculateVelMsg. This is where decisions are made based on the laser readings.
Dec-6-2021, 10:28:30 GMT