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

Support SDF's `relative_to` when inserting models

diegoferigo opened this issue · comments

The new frame semantics feature of SDF allows specifying a relative_to attribute in the pose element. It could be very useful to insert models programmatically in a location relative to other models:

bool insertModel(const std::string& modelFile,
const core::Pose& pose = core::Pose::Identity(),
const std::string& overrideModelName = {});

A possible implementation could extent core::Pose (in a backward-compatible way) so that the World::insertModel* methods do not need any new argument.