blackcoffeerobotics / bcr_bot

A Gazebo-ROS AMR robot with differential drive, depth camera, IMU and 2D LiDAR
https://blackcoffeerobotics.com/blog/migration-from-gazebo-classic-to-ignition-with-ros-2
Apache License 2.0
149 stars 34 forks source link

Refactored Gazebo launch to dynamically spawn bcr_bot #29

Closed ANGELOANTU7 closed 7 months ago

ANGELOANTU7 commented 7 months ago

Merge Request: Implement Dynamic Spawning for bcr_bot in Gazebo (ROS 1)

Description

This merge request implements a dynamic spawning mechanism for the bcr_bot robot in Gazebo. It involves the creation of two new files: bcr_bot_spawn.launch , which is used to spawn robots into any world without being tied to specific configurations. Additionally, modifications is made to gazebo.launch to call these spawn files, removing hardcoded bot spawning.

Changes Made

  1. Created bcr_bot_spawn.launch: This file is responsible for spawning robots into Gazebo worlds.
  2. Modified gazebo.launch: Updated to call bcr_bot_spawn.launch for dynamic bot spawning.

Test Cases

  1. Ran usual Gazebo with parameters: Tested and Passed
  2. Ran robot in Gazebo: Tested and Passed
  3. Spawned robot in another Gazebo world with parameters: Tested and Passed
  4. Ran robot in another Gazebo world : Tested and Passed

Additional Information

Video of Testing

  1. test case 1: Screencast from 03-28-2024 04:49:16 PM.webm
  2. test case 2: Screencast from 03-28-2024 04:51:34 PM.webm
  3. test case 3:Screencast from 03-28-2024 04:55:30 PM.webm
  4. test case 4: Screencast from 03-28-2024 04:55:51 PM.webm