This repo contains ROS packages for simulating the DHEX vehicle, it also contains .ino files for micro controller. DHEX is a differential robot, which has an encoder and IMU sensor for odometry. Additionally, it has an ESP32 for wifi connection using rosserial, for controlling the motor and for reading sensors. The robot model was made considering the mass of real parts, in order to get a more realistic simulation. Images and gifs below shows DHEX in simulation, in real life and in CAD.
This work was developed and tested under Ubuntu 18.04 LTS using ROS Melodic Morenia. This software may work on other platforms.
- Install the teleop_twist_keyboard:
$ sudo apt-get install ros-melodic-teleop-twist-keyboard
Inside the catkin_workspace folder, which can be created by following this ROS tutorial, clone our repository or download it as a ZIP file and extract it there.
Then, inside the catkin_workspace/src folder, build the workspace with $ catkin_make
In order to run the simulation in Gazebo, proceed with sourcing your workspace with source devel/setup.bash
, then launching the following:
$ roslaunch dhex_description dhex_simulation.launch
$ roslaunch dhex_description rviz.launch
$ roslaunch dhex_localization dhex_localization.launch
$ rosrun teleop_twist_keyboard teleop_twist_keyboard.py cmd_vel:=/dhex/cmd_vel
or publish on topic/dhex/cmd_vel
to move the robot.