CloudTwin  ROS2 Humble
Digital twin for path and trajectory optimisation
Public Member Functions | Public Attributes | Private Member Functions | List of all members
digital_twin.ws_command_bridge.WsCommandBridge Class Reference
+ Inheritance diagram for digital_twin.ws_command_bridge.WsCommandBridge:

Public Member Functions

def __init__ (self)
 

Public Attributes

 alias_index
 
 cmd_pub
 
 current_position
 
 current_target_data
 
 current_target_id
 
 last_clock
 
 nav_start_sim_time
 
 nav_state
 
 odom_topic
 
 rooms
 
 ws_clients
 
 ws_loop
 
 ws_port
 
 ws_thread
 

Private Member Functions

def _broadcast (self, payload)
 
def _build_alias_index (self, rooms)
 
def _clock_cb (self, msg)
 
def _feedback_cb (self, msg)
 
def _handle_message (self, websocket, raw)
 
def _load_registry (self, path)
 
def _nav_status_cb (self, msg)
 
def _odom_cb (self, msg)
 
def _resolve_room (self, text)
 
def _run_ws_server (self)
 
def _sim_time (self)
 
def _ws_handler (self, websocket, path=None)
 
def _ws_server_main (self)
 

Constructor & Destructor Documentation

◆ __init__()

def digital_twin.ws_command_bridge.WsCommandBridge.__init__ (   self)

Member Function Documentation

◆ _broadcast()

def digital_twin.ws_command_bridge.WsCommandBridge._broadcast (   self,
  payload 
)
private

◆ _build_alias_index()

def digital_twin.ws_command_bridge.WsCommandBridge._build_alias_index (   self,
  rooms 
)
private

◆ _clock_cb()

def digital_twin.ws_command_bridge.WsCommandBridge._clock_cb (   self,
  msg 
)
private

◆ _feedback_cb()

def digital_twin.ws_command_bridge.WsCommandBridge._feedback_cb (   self,
  msg 
)
private

◆ _handle_message()

def digital_twin.ws_command_bridge.WsCommandBridge._handle_message (   self,
  websocket,
  raw 
)
private

◆ _load_registry()

def digital_twin.ws_command_bridge.WsCommandBridge._load_registry (   self,
  path 
)
private

◆ _nav_status_cb()

def digital_twin.ws_command_bridge.WsCommandBridge._nav_status_cb (   self,
  msg 
)
private

◆ _odom_cb()

def digital_twin.ws_command_bridge.WsCommandBridge._odom_cb (   self,
  msg 
)
private

◆ _resolve_room()

def digital_twin.ws_command_bridge.WsCommandBridge._resolve_room (   self,
  text 
)
private

◆ _run_ws_server()

def digital_twin.ws_command_bridge.WsCommandBridge._run_ws_server (   self)
private
Run the asyncio WebSocket server in a dedicated thread.

◆ _sim_time()

def digital_twin.ws_command_bridge.WsCommandBridge._sim_time (   self)
private

◆ _ws_handler()

def digital_twin.ws_command_bridge.WsCommandBridge._ws_handler (   self,
  websocket,
  path = None 
)
private

◆ _ws_server_main()

def digital_twin.ws_command_bridge.WsCommandBridge._ws_server_main (   self)
private

Member Data Documentation

◆ alias_index

digital_twin.ws_command_bridge.WsCommandBridge.alias_index

◆ cmd_pub

digital_twin.ws_command_bridge.WsCommandBridge.cmd_pub

◆ current_position

digital_twin.ws_command_bridge.WsCommandBridge.current_position

◆ current_target_data

digital_twin.ws_command_bridge.WsCommandBridge.current_target_data

◆ current_target_id

digital_twin.ws_command_bridge.WsCommandBridge.current_target_id

◆ last_clock

digital_twin.ws_command_bridge.WsCommandBridge.last_clock

◆ nav_start_sim_time

digital_twin.ws_command_bridge.WsCommandBridge.nav_start_sim_time

◆ nav_state

digital_twin.ws_command_bridge.WsCommandBridge.nav_state

◆ odom_topic

digital_twin.ws_command_bridge.WsCommandBridge.odom_topic

◆ rooms

digital_twin.ws_command_bridge.WsCommandBridge.rooms

◆ ws_clients

digital_twin.ws_command_bridge.WsCommandBridge.ws_clients

◆ ws_loop

digital_twin.ws_command_bridge.WsCommandBridge.ws_loop

◆ ws_port

digital_twin.ws_command_bridge.WsCommandBridge.ws_port

◆ ws_thread

digital_twin.ws_command_bridge.WsCommandBridge.ws_thread

The documentation for this class was generated from the following file: