set gravity on each object Gazebo7 [closed]

asked 2016-09-29 23:03:54 -0600

ngoldfarb gravatar image

I am tryng to set the gravity on each individual objects in gazebo. I am spawning a robot model that needs to have 0 gravity. But The objects it needs to interact with need to have gravity,so they don't float away. I am not sure how to accomplish this I can turn on/off gravity for the entire world, but not individual models. Here is my world file,

    <?xml version="1.0" ?>
  <sdf version="1.4">
    <world name="default">




        <pose>0 10 0 0 0 0</pose>
         <gravity>0 0 -9.81</gravity>


      <gravity>0 0 0</gravity>


I would greatly appreciate any guidance.

edit retag flag offensive reopen merge delete

Closed for the following reason Gazebo Question: The Gazebo community prefers to answer questions at: by gvdhoorn
close date 2016-09-30 00:39:06.036769


This is not going to be the answer you're looking for, but this is a rather Gazebo-specific question. We try to keep ROS Answers on-topic, meaning that Gazebo questions should be posted to the Gazebo support forum. You'll stand a better chance of getting good answers there.

gvdhoorn gravatar image gvdhoorn  ( 2016-09-30 00:38:53 -0600 )edit