ROS2 Simulink to Gazebo (VMWare) - simulating multiple turtlebots

This question was flagged by Cam Salzberger
  • Flagged as Duplicate by Cam Salzberger on 7 Mar 2022.

    Duplicate of https://www.mathworks.com/matlabcentral/answers/1664394, which seems to have the more pertinent question title.

Hi, I am using ROS2 in simulink to work on a consensus algorithm between 2 robots.
My question is : how do i simulate multiple robots in the Gazebo Empty World? When i run the virtual machine and open the empty world, it automatically generates one turtlebot, how do I add or simulate additional turtlebots to be connected to my ros2 code?
As seen in image attached, I am attempting to subscribe from two different topics for two different robots.
Thank you!

Answers (0)

This question is closed.

Asked:

on 5 Mar 2022

Closed:

on 23 Aug 2022

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!