gazebosim / gz-transport

Transport library for component communication based on publication/subscription and service calls.
https://gazebosim.org
Apache License 2.0
29 stars 42 forks source link

`gz service -r` should not require `--reqtype` and `--reptype` #473

Open azeey opened 8 months ago

azeey commented 8 months ago

Desired behavior

gz service -r automatically determines the Request and Response message types. So instead of:

gz service -s /gazebo/worlds --reqtype gz.msgs.Empty --reptype gz.msgs.StringMsg_V -r 'unused: true' --timeout 2000

I'd like to run:

gz service -s /gazebo/worlds  -r 'unused: true' --timeout 2000

Alternatives considered

n/a

Implementation suggestion

gz service -i is able to retrieve the request and response types so it should be possible to use the same mechanism when making service calls via gz service -r.

Additional context

n/a