sudo apt install ros-foxy-ros2-control ros-foxy-ros2-controllers ros-foxy-gazebo-ros2-control
ros2 launch wolf-robot launch_sim.launch.py world:=./src/wolf-robot/worlds/construction.world
ros2 control list_hardware_interfaces
ros2 run teleop_twist_keyboard teleop_twist_keyboard --ros-args -r /cmd_vel:=diff_cont/cmd_vel_unstamped
rviz2 # To visualize robot in rviz
sudo apt install ros-foxy-ros2-control ros-foxy-ros2-controllers
git clone https://github.com/VEEROBOT/diffdrive_arduino.git
git clone https://github.com/VEEROBOT/serial.git
Serial is used to connect to serial port, diff drive is used to control the hardware
sudo apt install ros-foxy-xacro ros-foxy-joint-state-publisher ros-foxy-joint-state-publisher-gui
To change between gazebo and real robot, change between ros2 control and sim_mode in robot.urdf.xacro
file
ros2 launch wolf-robot launch_sim.launch.py world:=./src/wolf-robot/worlds/construction.world
ros2 launch wolf-robot launch_robot.launch.py
ros2 run teleop_twist_keyboard teleop_twist_keyboard --ros-args -r /cmd_vel:=/diff_cont/cmd_vel_unstamped