This pull request adds a new command to gz topic to send requests.
Its prototype is: gz topic -r <request_name> [-m <message>] [-f <file>]
gz topic -r <request_name> [-m <message>] [-f <file>]
Optional data can be sent with options -m or -f where message is a message to send and file is the path to a file containing the message to send.
Some command line examples:
$ gz topic -r atmosphere_info
$ gz topic -r entity_delete -m ground_plane
$ gz topic -r unknown_request
No response received
Note that this pull request also adds a timeout parameter to gazebo::transport::request whose default value is -1 to wait forever.
This is pretty cool!
it looks like the manpage test is unhappy:
did you use the python helper script?
I did not use the script. It should be fixed now.
I also added a small test in gz_TEST.cc and modified gz topic description.
Note that I also plan to make another pull request on top of that one to add gz topic -p to publish a message on a topic: https://bitbucket.org/ocrave/gazebo/commits/cb13af6893ceef87cbb6afbee08f03e48fb5b477?at=gz_topic_publish
gz topic -p
started a new build
build looks good.
looks good! I tried different requests it's working for me. Just one small comment about -f, and also merge conflicts