Control project to balance a simple low-cost robot
Authors: Martijn Strolenberg Tom Janssen-Bouwmeester
To install ROS2 humble you can follow the official website instructions install: https://docs.ros.org/en/humble/Installation/Ubuntu-Install-Debians.html
install:
sudo apt install ros-humble-gazebo-ros-pkgs
(to install gazebo with all ros dependencies)
install:
sudo apt install ros-humble-rviz2
(ROS Extensions)
install:
sudo apt install python3-colcon-common-extensions
install:
sudo apt install ros-humble-xacro ros-humble-joint-state-publisher-gui ros-humble-urdf-tutorial
install:
sudo apt install ros-humble-ros2-control ros-humble-ros2-controllers ros-humble-gazebo-ros2-control
install:
sudo apt install ros-humble-teleop-twist-keyboard
https://github.com/kubzzz/5LIU0_BalanceRobot.git
navigate to repository home folder (5LIU0_BalanceRobot)
cp -r Gazebo/balance_robot/ $HOME/.gazebo/models/
to put all models in the gazebo directory
navigate to the ros workspace directory
cd $HOME/5LIU0_BalanceRobot/balanceRobot_ws
Now build the ros package with
colcon build
Source the package with
source install/setup.bash
make sure your still in the ros workspace directory (balanceRobot_ws)
ros2 launch balance_robot rsp_sim.launch.py
Now Gazebo and RViz should open up and start the robot simulation
make sure your still in the ros workspace directory (balanceRobot_ws)
ros2 run teleop_twist_keyboard teleop_twist_keyboard
Make sure the terminal running this is the active one, now if the robots wheels are not in the air you can drive it arround