Using rti/service/admin/command_request example

5 posts / 0 new
Last post
ilya_1725's picture
Offline
Last seen: 2 years 6 months ago
Joined: 04/20/2020
Posts: 24
Using rti/service/admin/command_request example

Hello:

There is an administration topic to control RTI data recorder. The topic is rti/service/admin/command_request.

Does anyone have a python example to do this remote control of the data recorder? Sending commands and processing replies.

-Ilya.

PK_RTI's picture
Offline
Last seen: 2 weeks 6 days ago
Joined: 07/01/2021
Posts: 28

We typically publish one or two languages in the examples Github. Have you looked at the C++ example that we have? I'm no python expert, but I'd think that adapting it would be fairly straightforward.

Recording Service Admin Example

ilya_1725's picture
Offline
Last seen: 2 years 6 months ago
Joined: 04/20/2020
Posts: 24

Thank you for the pointer. I've looked at the example and it does work.

A question: I've tried sending the same command using the example and using the AdminConsole. Why is the AdminConsole sets `octet_body` when sending the command, but the example just sets the `string_body`?

ilya_1725's picture
Offline
Last seen: 2 years 6 months ago
Joined: 04/20/2020
Posts: 24

I actually found examples with explanations here and here.

Howard's picture
Offline
Last seen: 6 days 16 hours ago
Joined: 11/29/2012
Posts: 618

Thanks for sharing what you found!