Niryo_robot_system_api_client

This packages handle the flask server requests to manage:
  • Robot name
  • Wifi settings
  • Ethernet settings

Publisher - System API Client

System API Client Package’s Publishers
Name Message Type Description
/niryo_robot/wifi/status WifiStatus Publish the current wifi status

Services - System API Client

System API Client Services
Name Message Type Description
/niryo_robot/wifi/set_robot_name SetString Change the robot name
/niryo_robot/wifi/manage ManageWifi Change the wifi hotspot mode
/niryo_robot/ethernet/manage ManageEthernet Change the ethernet setup (ip address, netmask, gateway, dhcp) based on nmcli interface.

Services files - System API Client

ManageEthernet (Service)

int8 STATIC = 1
int8 AUTO = 2
int8 CUSTOM = 3

int8 profile

# Only for the custom profile
string ip       # ex: '192.168.1.73'
string mask     # ex: '255.255.255.0'
string gateway  # ex: '192.168.1.1'
# Optional
string dns      # ex: '8.8.8.8 4.4.4.4' separated by spaces

---
int32 status
string message

ManageWifi (Service)

int8 HOTSPOT = 0
int8 RESTART = 1
int8 DEACTIVATE = 2
int8 RECONNECT = 3

int8 cmd
---
int32 status
string message

Messages files - System API Client

WifiStatus (Message)

int8 UNKNOWN = 0
int8 HOTSPOT = 1
int8 DISABLED = 2
int8 CONNECTED = 3
int8 DISCONNECTED = 4

int8 status