robotology / gym-ignition

Framework for developing OpenAI Gym robotics environments simulated with Ignition Gazebo

Home Page:https://robotology.github.io/gym-ignition

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Models inserted in the world before enabling the physics do not move

diegoferigo opened this issue · comments

For some reason, the last physics alignment #365 has broken one of the tests. In short, in a world without physics, if:

  1. A model is inserted
  2. The simulator is stepped (there's no physics, the model does not move)
  3. The physics plugin is inserted
  4. The model is processed by the physics plugin

In these conditions, before #365 the model would be affected by the physics. Instead, after #365, the model stays still, like it would be static.

# The cube should start falling
assert cube.base_position()[2] < cube_pose.position[2]

This is an edge case we were testing. For the moment, let's keep this behavior broken and disable the test.