2023-06-27 03:46:06 -03:00
|
|
|
#include "uxr/client/client.h"
|
|
|
|
|
|
|
|
enum class ServiceIndex: uint8_t {
|
2023-08-19 10:22:41 -03:00
|
|
|
ARMING_MOTORS,
|
|
|
|
MODE_SWITCH
|
2023-06-27 03:46:06 -03:00
|
|
|
};
|
|
|
|
|
|
|
|
static inline constexpr uint8_t to_underlying(const ServiceIndex index)
|
|
|
|
{
|
|
|
|
static_assert(sizeof(index) == sizeof(uint8_t));
|
|
|
|
return static_cast<uint8_t>(index);
|
|
|
|
}
|
|
|
|
|
|
|
|
constexpr struct AP_DDS_Client::Service_table AP_DDS_Client::services[] = {
|
|
|
|
{
|
|
|
|
.req_id = to_underlying(ServiceIndex::ARMING_MOTORS),
|
|
|
|
.rep_id = to_underlying(ServiceIndex::ARMING_MOTORS),
|
|
|
|
.req_profile_label = "",
|
2023-09-05 10:52:38 -03:00
|
|
|
.rep_profile_label = "arm_motors__replier",
|
2023-08-19 10:22:41 -03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
.req_id = to_underlying(ServiceIndex::MODE_SWITCH),
|
|
|
|
.rep_id = to_underlying(ServiceIndex::MODE_SWITCH),
|
|
|
|
.req_profile_label = "",
|
|
|
|
.rep_profile_label = "mode_switch__replier",
|
|
|
|
},
|
2023-06-27 03:46:06 -03:00
|
|
|
};
|