Comments (3)
I just had a look at this. Running a unpaused run
instead of a paused run
gives the intended result. I'm not yet sure why this is necessary, I need more time to dig into the Physics system, maybe there are some if(is_static)
that mess a bit the insertion logic. I'm leaving this issue open so that I can track this check, but in the meantime you can issue regular run
commands.
That said, they can definitely collide with dynamic models, so physics should be aware of them...
This for sure 👍
from gym-ignition.
The modelling that SDF allows is quite large and we didn't explore many of them, including static models. In many cases like it could be this one, it depends a lot on how they are implemented upstream, in most cases we just read the ECM and expose its data through our APIs.
I'm not really sure whether poses of static models are processed by the physics engine (passing through the Physics
system). What we do is just returning what's stored in the ignition::gazebo::components::Pose
component:
gym-ignition/scenario/src/gazebo/src/Model.cpp
Lines 931 to 939 in 83b9b1c
If the Physics system does not populate it neither the first time (since after that it should not change being static), this behavior should be addressed upstream. I'll have a more in depth look on this in the next few days.
from gym-ignition.
Interesting. You would indeed expect static
models to not be updated by the physics engine. That said, they can definitely collide with dynamic models, so physics should be aware of them...
In the Ignition inspector itself the pose is set correctly; however, it is given relative to camera_static::__model__
instead of world
.
... which is partly my reason for trying to use all these combinations and advanced SDFormat features in gym-ignition. It returns all poses relative to world
, which is very handy and I haven't figured out how to make ignition do this natively yet.
from gym-ignition.
Related Issues (20)
- Models inserted in the world before enabling the physics do not move
- Add CODEOWNERS
- Simplify logic to get the Entity Component Manager and Event Manager HOT 1
- Error in Physics system: not in entity map
- scenario can not determine world position of link HOT 10
- Does gym-ignition support nested models? HOT 2
- Unable to install gym-ignition
- Multiple resets before stepping makes observations junk HOT 8
- After updating to v1.3.0 stable render now instantly closes and physics engine path isn't found. HOT 4
- Make command Failed HOT 18
- Distribute through conda-forge
- Failing to install `scenario` on MacOS HOT 12
- Failed to find Ignition Gazebo `~=6.0.0.dev` HOT 6
- gym_ignition.scenario: ServerConfig and Component Warning Issues HOT 2
- cartpole observation is never contained in observation_space
- Runtime problem when running with gym >= 0.22
- TypeError: metaclass conflict: the metaclass of a derived class must be a (non-strict) subclass of the metaclasses of all its bases HOT 6
- ⚠️ Development status of the project ⚠️ HOT 3
- Unable to run ScenarIO Example HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gym-ignition.