#include <cstring>
#include "ignition/transport/Helpers.hh"
Go to the source code of this file.
§ cmdServiceInfo()
External hook to execute 'ign service -i' from the command line.
- Parameters
-
[in] | _service | Service name. |
§ cmdServiceList()
External hook to execute 'ign service -l' from the command line.
§ cmdServiceReq()
IGNITION_TRANSPORT_VISIBLE void cmdServiceReq |
( |
const char * |
_service, |
|
|
const char * |
_reqType, |
|
|
const char * |
_repType, |
|
|
const int |
_timeout, |
|
|
const char * |
_reqData |
|
) |
| |
External hook to execute 'ign service -r' from the command line.
- Parameters
-
[in] | _service | Service name. |
[in] | _reqType | Message type used in the request. |
[in] | _repType | Message type used in the response. |
[in] | _timeout | The request will timeout after '_timeout' ms. |
[in] | _reqData | Input data sent in the request. The format expected is the same used by Protobuf DebugString(). E.g.: cmdServiceReq("/bar", "ignition.msgs.StringMsg", "ignition.msgs.StringMsg", 1000, "'data:\"Custom data"'); |
§ cmdTopicEcho()
External hook to execute 'ign topic -e' from the command line.
- Parameters
-
[in] | _topic | Topic name. |
[in] | _duration | Duration (seconds) to run. |
§ cmdTopicInfo()
External hook to execute 'ign topic -i' from the command line.
- Parameters
-
§ cmdTopicList()
External hook to execute 'ign topic -l' from the command line.
§ cmdTopicPub()
External hook to execute 'ign topic -p' from the command line.
- Parameters
-
[in] | _topic | Topic name. |
[in] | _msgType | Message type. |
[in] | _msgData | The format expected is the same used by Protobuf DebugString(). E.g.: cmdTopicPub("/foo", "ignition.msgs.StringMsg", "'data:\"Custom data"'); |
§ ignitionVersion()
External hook to read the library version.
- Returns
- C-string representing the version. Ex.: 0.1.2