monemati / PX4-ROS2-Gazebo-YOLOv8

Aerial Object Detection using a Drone with PX4 Autopilot and ROS 2. PX4 SITL and Gazebo Garden used for Simulation. YOLOv8 used for Object Detection.
78 stars 10 forks source link

how can i add other objects to the gazebo world #8

Open Meriem-ghrissi opened 2 months ago

Meriem-ghrissi commented 2 months ago

how can i add other objects to the gazebo world

monemati commented 2 months ago

@Meriem-ghrissi Hello. You can add other objects by modifying default.sdf in world folder. For example if you check the end of the file you can see this part:

    <include>
      <pose>280.64 -137.32 2.77 -0.019 -0.008 2.46</pose>
      <uri>model://casual_female</uri>
    </include>

With this format you can just add other objects (you can just copy and paste this lines), just don't forget to change the pose of objects. You can find other models from this link.