An overkill Arduino obstacle avoidance robot using ROS
- Initialize catkin workspace
mkdir -p ~/catkin_ws/src
cd ~/catkin_ws/src
git clone https://github.com/jimmyasyraf/robot_navigation.git
- Build the package
cd ~/catkin_ws
catkin_make
- Run ROS core
roscore
- Run rosserial to establish serial connection with Arduino. Make sure Arduino port is correct
rosrun rosserial_python serial_node.py /dev/ttyACM0
- Run the package
rosrun robot_navigation obstacle_avoidance.py
- View logs
rostopic echo /distance
rostopic echo /direction