Skip to content
generated from adoodevv/diffbot

Follow up package for tutorial on simulating differential drive robot with Gazebo Harmonic and ROS 2 Jazzy

License

Notifications You must be signed in to change notification settings

adoodevv/diffbot_tut

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Diffbot Tutorial

This repository contains the follow-along code for simulating and building a mobile robot in Gazebo Harmonic and ROS2 Jazzy Jalisco. The series can be found on the blog: Diffbot Tutorial Series

Table of Contents

Introduction

Diffbot is a simulated robot designed in ROS2 with Gazebo. This tutorial series will guide you through the process of setting up the Diffbot environment, controlling the robot, and implementing various functionalities.

Setup

To set up the Diffbot environment for the tutorial, follow these steps:

  1. Clone the template repository:
    git clone https://github.com/adoodevv/diffbot.git
     cd diffbot
  2. Follow the instructions in the blog series to install necessary dependencies and configure your ROS2 and Gazebo environment.
  3. Build the workspace:
    colcon build
  4. Source the workspace:
    source install/setup.bash
  5. Launch the Diffbot simulation:
    ros2 launch diffbot_tut robot.launch.py

Usage

Once the simulation is running, you can control the Diffbot using ROS2 commands. For example, to move the robot forward, you can publish velocity commands to the appropriate topic.

ros2 topic pub /cmd_vel geometry_msgs/msg/Twist "{linear: {x: 0.5, y: 0.0, z: 0.0}, angular: {x: 0.0, y: 0.0, z: 0.0}}"

To stop the robot, you can publish a zero velocity command:

ros2 topic pub /cmd_vel geometry_msgs/msg/Twist "{linear: {x: 0.0, y: 0.0, z: 0.0}, angular: {x: 0.0, y: 0.0, z: 0.0}}"

Contributing

Contributions to this repository are welcome! If you find any issues or have suggestions for improvements, please open an issue or submit a pull request.

License

This project is licensed under the MIT License. See the LICENSE file for details.

About

Follow up package for tutorial on simulating differential drive robot with Gazebo Harmonic and ROS 2 Jazzy

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published