Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sdf parsing problem #17

Open
b4be1 opened this issue Jul 20, 2020 · 2 comments
Open

sdf parsing problem #17

b4be1 opened this issue Jul 20, 2020 · 2 comments
Assignees

Comments

@b4be1
Copy link

b4be1 commented Jul 20, 2020

When running the default r2d2 example that uses https://github.com/socrob/mbot_simulation_environments, I am getting many b3Warnings, among others saying that no inertial data for links is provided. This causes pybullet_ros to crash at start. This seems to be caused by pybullet loading gazebo sdf model which is missing some fields (related issue robotology/icub-models#12). Any suggestions how to fix it?

@oscar-lima
Copy link
Owner

Currently the sdf support in pybullet ros is experimental, is not an easy task to integrate as one has to parse the sdf + adapt to the structure of pybullet. Unfortunately, I think this is a larger project, one in which much more effort is needed. For now I have commented out all environment support in pybullet ros and will likely introduce the notion of one time plugin at the beginning, so users can load environments using normal pybullet code. Once I have more time I will definitely look into this in more detail.

@oscar-lima oscar-lima self-assigned this Mar 3, 2021
@oscar-lima
Copy link
Owner

As a temporal workaround I have added en environment one time only plugin. This means that you can write python code to load your environment by using functions like self.pb.loadURDF(...) or self.pb.loadSDF(...) . Documentation has been added in the main README.md under "environment" section

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants