A repository containing all the materials for the PESU IO course Introduction to Integrated Robotics
To dual boot your systems please refer to this youtube link: https://www.youtube.com/watch?v=UmPL54WKlaU&ab_channel=Buzz2dayTech
For VirtualBox refer this link:
Windows: https://www.youtube.com/watch?v=v1JVqd8M3Yc&ab_channel=ProgrammingKnowledge Mac: https://www.youtube.com/watch?v=b_tOialCSXE&ab_channel=TheLinuxOS
Ubuntu 22.04 iso download link: https://releases.ubuntu.com/jammy/
Refer this link: https://www.arduino.cc/en/software Please download the zip file and extarct it on your ubuntu desktop.
Refer this link: https://docs.ros.org/en/humble/Installation.html
Open terminal and run:
sudo apt-get install gazebo11
Check the installation:
gazebo
Usualy installed with ROS2 packages, run the command below to check:
rviz2
Refer this link: https://randomnerdtutorials.com/installing-the-esp32-board-in-arduino-ide-windows-instructions/
Open Terminal and run the below commands:
-
Creating your workspace
mkdir -p ~/iir_ws/src
-
Cloning this Repository
cd ~/iir_ws/src git clone https://github.com/Varchasvin10/Introduction_to_Integrated_Robotics_slot_18.git
FOLLOW THE STEPS TOLD BY SME'S HERE!!
-
Building your workspace
cd cd ~/iir_ws colcon build
Usually there wont be robot localization node downloaded. We can download it using this command
sudo apt-get install ros-humble-robot-localization
-
Running Rviz and Gazebo Simulation First we have to source our workspace:
source install/setup.bash
Launching the Simulation in Rviz and Gazebo:
ros2 launch iir display.launch.py
To run only Rviz:
ros2 launch iir rviz.launch.py
To run only Gazebo:
ros2 launch iir gz.launch.py
-
Using Teleop keys to control the simulated robot
ros2 run teleop_twist_keyboard teleop_twist_keyboard
Open up terminal and run the following command:
-
Source the workspace:
source /opt/ros/humble/setup.bash
-
Edit ~/.bashrc:
gedit ~/.bashrc
Add this line in the file:
source /opt/ros/humble/setup.bash
-
Create a workspace:
cd mkdir microros_ws cd microros_ws mkdir src
-
Clone Micro ROS from github:
cd cd microros_ws/src git clone -b $ROS_DISTRO https://github.com/micro-ROS/micro_ros_setup.git src/micro_ros_setup
-
Install rosdep:
cd sudo apt install python3-rosdep2
-
Update and Install other dependencies:
sudo apt update && rosdep update rosdep install --from-paths src --ignore-src -y sudo apt-get install python3-pip
-
Build micro_ros tool and source them:
cd microros_ws colcon build source install/setup.bash
-
Install Micro ROS agent:
ros2 run micro_ros_setup create_agent_ws.sh # Build step ros2 run micro_ros_setup build_agent.sh
Refer to this link: https://github.com/micro-ROS/micro_ros_arduino/releases
Connect the esp32 to your device and run this command:
cd microros_ws
source install/setup.bash
ros2 run micro_ros_agent micro_ros_agent serial --dev /dev/ttyUSB0
Connect the esp32 to a power bank and run the below command:
cd microros_ws
source install/setup.bash
ros2 run micro_ros_agent micro_ros_agent udp4 --port 8888