Gazebo | Ignition | Community
Ask Your Question

jelavice's profile - activity

2020-12-21 11:31:53 -0500 received badge  Famous Question (source)
2018-10-22 07:27:26 -0500 received badge  Famous Question (source)
2018-10-22 07:27:26 -0500 received badge  Notable Question (source)
2018-10-22 07:27:26 -0500 received badge  Popular Question (source)
2017-10-03 16:18:43 -0500 received badge  Notable Question (source)
2017-10-03 16:18:41 -0500 received badge  Famous Question (source)
2017-10-03 16:18:41 -0500 received badge  Notable Question (source)
2017-10-03 04:02:09 -0500 edited question Which frame does GetRelativeLinearVel() return the velocity in?

Which frame does GetRelativeLinearVel() return the velocity in? I suppose that the returned velocity is in the body fram

2017-10-03 03:04:21 -0500 asked a question Which frame does GetRelativeLinearVel() return the velocity in?

Which frame does GetRelativeLinearVel() return the velocity in? I would suppose that the returned velocity is in the bod

2017-06-30 04:01:33 -0500 received badge  Famous Question (source)
2017-05-30 11:38:38 -0500 received badge  Popular Question (source)
2017-05-30 01:38:22 -0500 received badge  Enthusiast
2017-05-29 02:19:14 -0500 marked best answer Attaching plugin to a model programmatically

Is it possible to attach plugin to a model directly from the code (not in the sdf files or xml files). So I want to add the model programmatically inside the simulation and then attach a model plugin to that model by specifying the path to the plugin library.

Something like:

//load model

worldPtr_->InsertModelFile(modelName);

//get model pointer

modelPtr = getModelPtr();

//attach a plugin to that model

attachPlugin(modelPtr, pluginName)

The code above should be executed inside the world plugin. Is something like that even possible?

2017-05-29 02:19:02 -0500 answered a question Attaching plugin to a model programmatically

This can be done by manually calling the function "Create" with prototype static TPtr Create( const std::string & _

2017-05-28 11:25:13 -0500 asked a question Attaching plugin to a model programmatically

Attaching plugin to a model programmatically Is it possible to attach plugin to a model directly from the code (not in t

2017-05-25 02:38:04 -0500 received badge  Notable Question (source)
2017-05-25 01:55:56 -0500 marked best answer Is it possible to send a world pointer in a message?

Would it be possible to define a message that transports a pointer to the world class (physics::WorldPtr) in gazebo and send such a message to another node. The upshot would be having something like msgs::WorldPtr.

If it ain't possible, can the same be done with a model pointer?

2017-05-24 00:05:43 -0500 commented answer Is it possible to send a world pointer in a message?

By node I meant another executable. Since I am running it from a different terminal this would mean that my executable i

2017-05-24 00:00:18 -0500 received badge  Popular Question (source)
2017-05-23 14:51:45 -0500 commented answer Is it possible to send a world pointer in a message?

Hi, thanks for the answer. Ideally, I'd like to access the world from a different node. I don't see any other way than s

2017-05-23 10:33:35 -0500 edited question Is it possible to send a world pointer in a message?

Is it possible to send a world pointer in a message? Would it be possible to define a message that transports a pointer

2017-05-23 10:25:01 -0500 received badge  Organizer (source)
2017-05-23 10:23:31 -0500 received badge  Editor (source)
2017-05-23 10:23:31 -0500 edited question Is it possible to send a world pointer in a message?

Is it possible to send a world pointer in a message? Would it be possible to define a message that transports a pointer

2017-05-23 10:19:00 -0500 asked a question Is it possible to send a world pointer in a message?

Is it possible to send a world pointer in a message? Would it be possible to define a message that transports a pointer

2017-05-20 11:01:54 -0500 commented answer Subscriber with member callback function

Btw can you think of any good reason my plugin is not receiving any messages? As far as I understood, there should be a

2017-05-20 09:05:41 -0500 received badge  Popular Question (source)
2017-05-20 08:31:10 -0500 commented answer Subscriber with member callback function

That solved the error, thanks.

2017-05-20 08:30:37 -0500 marked best answer Subscriber with member callback function

I am trying to subscribe to the model msgs in gazebo, however I cannot bind the callback function in a correct way. This is the code:

class WorldInterface : public WorldPlugin

{

public:


    void messageReceived1(const msgs::Model& _msg)
    {
        std::cout << "Got the message!" << std::endl;
        modelLoaded_ = true;
    }

    void Load(physics::WorldPtr _parent, sdf::ElementPtr _sdf)
    {

        transport::NodePtr node(new transport::Node());
        node->Init();


        transport::SubscriberPtr modelSub =
                node->Subscribe("~/model/info", std::bind(&gazebo::WorldInterface::messageReceived1, this, _1));

.....
}
};

The error I get is:

error: no matching function for call to ‘gazebo::transport::Node::Subscribe(const char [13], std::_Bind_helper<false, void (gazebo::WorldInterface::*)(const gazebo::msgs::Model&), gazebo::WorldInterface*, boost::arg<1>&>::type)’
     node->Subscribe("~/model/info", std::bind(&gazebo::WorldInterface::messageReceived1, this, _1));
2017-05-20 08:30:37 -0500 received badge  Scholar (source)
2017-05-19 10:22:02 -0500 asked a question Subscriber with member callback function

Subscriber with member callback function I am trying to subscribe to the model msgs in gazebo, however I cannot bind the