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

Insert a model in Gazebo with fixed pose #80

Closed
diegoferigo opened this issue Oct 16, 2019 · 1 comment
Closed

Insert a model in Gazebo with fixed pose #80

diegoferigo opened this issue Oct 16, 2019 · 1 comment

Comments

@diegoferigo
Copy link
Member

In Gazebo Classic we could fix a model to the world by using an imported model from URI and a scoped joint (example icub_fixed_no_hands.sdf). I didn't manage to make this solution work with Ignition Gazebo. Maybe there's no support of scoped links / joints outside the original <model> element.

Since now we have the support of adding and removing model during runtime (#50), maybe we could set the base type (floating / fixed) directly in the ECM by adding a fixed joint entity during model creation.

If this works, we should add a bool fixed argument in one of the two following spots:

bool insertModel(const gympp::gazebo::ModelInitData& modelData,
const gympp::gazebo::PluginData& pluginData = {});

struct gympp::gazebo::ModelInitData
{
std::string sdfString;
std::string modelName = "";
std::array<double, 3> position = {0, 0, 0};
std::array<double, 4> orientation = {1, 0, 0, 0};

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

No branches or pull requests

1 participant