gazebo plugin connection for custom world lunch file issue

3 visualizaciones (últimos 30 días)
I am trying to run simulink using Gazebo Pacer block with the office world exmaple that is used with matlab. How can I make any gazebo world of my own selection to run with plugin and setup the port connection as well for that world.

Respuesta aceptada

Gaurav Bhosale
Gaurav Bhosale el 18 de Abr. de 2022
Editada: Gaurav Bhosale el 18 de Abr. de 2022
Hi Momtaz,
To enable Gazebo Co-Plugin support, you need to add plugin details in .world file as,
You can refer this example.
For office world example, the turtlebot3_mw_office.world is located at /opt/ros/oetic/share/turtulebot3_gazebo/worlds/turtlebot3_mw_office.world
You need to edit turtlebot3_mw_office.world as follows,
Further, you should not use 11311 port number for connection. It should same which you added in .world file, with <portNumber> tag i.e. 14581
Thanks
  1 comentario
Momtaz Abadir
Momtaz Abadir el 18 de Abr. de 2022
Thank you.
I have done it already by editing the world files on /home/user/src/worlds/ and not /opt/ros/noetic/share/turtlebot3_gazebo/worlds/
However,
on VM you cannot edit any files inside /opt/ros/noetic/share/turtulebot3_gazebo/worlds/turtlebot3_mw_office.world
How can we edit these files ?I used chmod +x (files ) and not working

Iniciar sesión para comentar.

Más respuestas (0)

Productos


Versión

R2021b

Community Treasure Hunt

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

Start Hunting!

Translated by