Gazebo | Ignition | Community
Ask Your Question

rahhwang's profile - activity

2016-02-11 04:09:36 -0500 received badge  Famous Question (source)
2015-02-06 15:37:24 -0500 received badge  Notable Question (source)
2015-02-04 18:14:18 -0500 received badge  Popular Question (source)
2015-02-03 11:28:45 -0500 received badge  Editor (source)
2015-02-03 11:27:41 -0500 asked a question Getting parameters from SDF

How can I get parameters from the sdf from within a plugin? Specifically, I am trying to get the initial pose from a model. Based what I've seen in other code, I've tried something like

```

class ModelMovePath : public ModelPlugin
    {
    public: void Load(physics::ModelPtr _parent, sdf::ElementPtr _sdf)
        {
            // Store the pointer to the model
            this->model = _parent;
           string pose = _sdf->GetElement("pose");

```

But neither "pose" or "model" seem to be elements or parameters of the sdf.I looked at the sdf website, but am still having some trouble. Is there more detailed documentation anywhere on how to read parameters from sdf?