Gazebo | Ignition | Community
Ask Your Question

how does the request<-->response work?

asked 2014-10-28 08:46:40 -0600

shpower gravatar image


I saw this command:

boost::sharedptr<msgs::response> response = transport::request(getworld(), "world_sdf");

Can somebody explain how the request command works? Is there a list of requests that I can send?

Thanks in advance,

edit retag flag offensive close merge delete

1 Answer

Sort by » oldest newest most voted

answered 2014-10-29 15:29:50 -0600

scpeters gravatar image

I don't think it's well-documented anywhere yet. It's kind of informal; there isn't a master list of things that can be requested. There's just a standard topic ~/request the request providers subscribe to and that requesters can advertise.

I grepped for Subscribe.*~/request in gazebo and found the following list of request providers:


To see the requests provided by a given provider, you have to look at the code. For example, see World::ProcessRequestMsgs in to see some of the following:

    if ((*iter).request() == "entity_list")
    else if ((*iter).request() == "entity_delete")
    else if ((*iter).request() == "entity_info")

This is only a partial answer, but I'll add more if there are further questions.

edit flag offensive delete link more
Login/Signup to Answer

Question Tools


Asked: 2014-10-28 08:46:40 -0600

Seen: 772 times

Last updated: Oct 29 '14