diff --git a/amr/v1/slamnav_control.fbs b/amr/v1/slamnav_control.fbs index 57c8f5bb..da2fe64f 100644 --- a/amr/v1/slamnav_control.fbs +++ b/amr/v1/slamnav_control.fbs @@ -13,13 +13,17 @@ table Response_Safety_Field { message: string; } +table Safety_Flag { + name: string; + value: bool; +} table Request_Reset_Safety_Flag { id: string; - reset_flag: string; + reset_flag: [Safety_Flag]; } table Response_Reset_Safety_Flag { id: string; - reset_flag: string; + reset_flag: [Safety_Flag]; result: string; message: string; } @@ -28,9 +32,30 @@ table Response_Reset_Safety_Flag { table Request_Dock { id: string; - command: string; } table Response_Dock { + id: string; + result: string; + message: string; +} +table Request_Undock { + id: string; +} +table Response_Undock { + id: string; + result: string; + message: string; +} +table Request_DockStop { + id: string; +} +table Response_DockStop { + id: string; + result: string; + message: string; +} + +table State_Change_Dock { id: string; command: string; result: string; @@ -77,12 +102,12 @@ table Response_Safety_Io { //-------------------------------------------- -table Request_Control_LED { +table Request_Led { id: string; onoff: bool; color: string; } -table Response_Control_LED { +table Response_Led { id: string; onoff: bool; color: string; @@ -92,11 +117,11 @@ table Response_Control_LED { //-------------------------------------------- -table Request_Control_Motor { +table Request_Motor { id: string; onoff: bool; } -table Response_Control_Motor { +table Response_Motor { id: string; onoff: bool; result: string; @@ -116,13 +141,13 @@ table Response_Random_Sequence { //--------------------------------------------- -table Request_Control_Frequency { +table Request_Frequency { id: string; target: string; //lidar, path onoff: bool; frequency: int; } -table Response_Control_Frequency { +table Response_Frequency { id: string; target: string; onoff: bool; diff --git a/amr/v1/slamnav_localization.fbs b/amr/v1/slamnav_localization.fbs index a3f70918..4a128e61 100644 --- a/amr/v1/slamnav_localization.fbs +++ b/amr/v1/slamnav_localization.fbs @@ -22,6 +22,7 @@ table Response_Localization_Init { table Request_Localization_SemiAutoInit { id: string; } + table Response_Localization_SemiAutoInit { id: string; result: string; diff --git a/nexus/v1/common_network.fbs b/nexus/v1/common_network.fbs new file mode 100644 index 00000000..0d0f5014 --- /dev/null +++ b/nexus/v1/common_network.fbs @@ -0,0 +1,82 @@ +namespace IPC; + + +table Wifi { + in_use: bool; + ssid: string; + signal: int; + security: string; + channel: int; + rate: string; +} + +// 네트워크 정보 +table Network { + device: string; + dhcp: bool; + dns: [string]; + ssid: string; + address: string; + netmask: string; + gateway: string; + signal: int; +} + +// 네트워크 정보 요청 ------------------------------------------------ +table Request_Network_GetNetwork { +} + +table Response_Network_GetNetwork { + ethernet: Network; + wifi: Network; + bluetooth: Network; +} + +// 네트워크 설정 ------------------------------------------------ +table Request_Network_SetPD { + ssid: string; + dhcp: bool; + address: string; + netmask: string; + gateway: string; + dns: [string]; +} + +table Response_Network_SetPD { + ssid: string; + dhcp: bool; + address: string; + netmask: string; + gateway: string; + dns: [string]; + result: string; + message: string; +} + +// 네트워크 접속 ------------------------------------------------ +table Request_Network_ConnectWifi { + ssid: string; + password: string; +} + +table Response_Network_ConnectWifi { + ssid: string; + address: string; + gateway: string; + netmask: string; + dns: [string]; + signal: int; + result: string; + message: string; +} + +// 네트워크 목록 조회 ------------------------------------------------ +table Request_Network_GetWifiList { + rescan: bool; +} + +table Response_Network_GetWifiList { + list: [Wifi]; + result: string; + message: string; +}