Service Call

When you need to call a specific Service, you can use the following commands:

ezros service -n OG000285 -c get_img
ezros service -n gripper_d672f584b17a -c set_led_color:=255,0,0

The following is the printed information:

调用服务: OG000285
动作: get_img
参数: []
----------------------------------------
响应:  [[[227 156  83]
[230 151  85]
[229 149  86]
...
[201 110 112]
[110  45  36]
[ 74  44  34]]

[[225 154  82]
[228 150  85]
[228 149  86]
...
[225 131 137]
[114  44  36]
[ 75  44  31]]]
调用服务: gripper_d672f584b17a
动作: set_led_color
参数: [255, 0, 0]
----------------------------------------

Tips

  • The service subcommand indicates that this operation is to call a specific service;

  • The –name/-n mandatory parameter specifies the name of the Service to be called;

  • The –call/-c mandatory parameter specifies the service action and parameters to be called, in the format of “action_name:= parameter”.