Home | Tutorials | Wiki | Issues
Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Why does an SDF model moved through /gazebo/set_model_state service doesnt colide with objects

Hi, I am moving an sdf cube setting its state through the /gazebo/set_model_state service, through python. The SDF is as follows, and is spawned through the gazebo/spawn_sdf_model service. I have tried it with and without the inertial component:

<?xml version="1.0"?>
<sdf version="1.4">
    <model name="piece">
        <link name="link">
            <collision name="collision">
                    <box><size>0.5 0.5 0.5</size></box>

            <visual name="visual">
                    <box><size>0.5 0.5 0.5</size></box>



Its moving perfectly but when a standard cube is placed in its trajectory, it just crosses as if it wasn't there. But if the movement stops and I move the standard cube a bit , then the collisions come into place. image description

Is there a way of update the physics in the same way that it gets updated when the standard cube is moved by hand? Am I missing something in how gazebo works? Extra Data: ROS Version: kinetic GAzebo Version: 7.0