gazebo plugin connection for custom world lunch file issue

1 次查看(过去 30 天)
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.

采纳的回答

Gaurav Bhosale
Gaurav Bhosale 2022-4-18
编辑:Gaurav Bhosale 2022-4-18
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 个评论
Momtaz Abadir
Momtaz Abadir 2022-4-18
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

请先登录,再进行评论。

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Robotics 的更多信息

产品


版本

R2021b

Community Treasure Hunt

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

Start Hunting!

Translated by