Controlling turtlebot with optical flow provided by OpenCV in Gazebo simulator
- Environment : Ubuntu 16.04(VMware) / ROS_kinetic
- ROS packages
- OpenCV
Installation command : $ sudo apt install ros-kinetic-opencv*
- Usb_cam
Installation command : $ sudo apt install ros-kinetic-usb-cam
Execution command : $ rosrun usb_cam usb_cam_node
Subscribing image-messages that Camera node published, define angular and velocity with optical flow that provided in ROS_OpenCV.
With angular and velocity, publish geometry messages being used in controlling turtlebot.
Instead of using turtlebot in real world, I used Gazebo simulator to execute my project.
Moving the book up/down, left/right in screen, turtlebot moves toward the direction equal to book.
- GitHub - tzutalin/ros_sample_image_transport: ROS Receive and publish different topics about image
- turtlebot_apps/turtlebot_teleop at hydro · turtlebot/turtlebot_apps · GitHub
- https://95mkr.tistory.com/entry/ROS6