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

Public Member Functions

def __init__ (self)
 

Public Attributes

 alias_index
 
 feedback_pub
 
 goal_pub
 
 rooms
 

Private Member Functions

def _command_callback (self, String msg)
 
def _find_room (self, query)
 
def _load_registry (self, path)
 
def _parse_command (self, text)
 
def _publish_feedback (self, text)
 

Constructor & Destructor Documentation

◆ __init__()

def digital_twin.room_interpreter.RoomInterpreterNode.__init__ (   self)

Member Function Documentation

◆ _command_callback()

def digital_twin.room_interpreter.RoomInterpreterNode._command_callback (   self,
String  msg 
)
private
Process an incoming text command.

◆ _find_room()

def digital_twin.room_interpreter.RoomInterpreterNode._find_room (   self,
  query 
)
private
Find a room matching the query in the alias index.

Uses exact match first, then substring match, then fuzzy.
Returns room data dict or None.

◆ _load_registry()

def digital_twin.room_interpreter.RoomInterpreterNode._load_registry (   self,
  path 
)
private
Load room registry from YAML file.

◆ _parse_command()

def digital_twin.room_interpreter.RoomInterpreterNode._parse_command (   self,
  text 
)
private
Extract room name from a text command.

Handles patterns like:
    "Go to room 204"
    "Navigate to salle urgences"
    "salle_101"
    "room 204"
    "urgences"

◆ _publish_feedback()

def digital_twin.room_interpreter.RoomInterpreterNode._publish_feedback (   self,
  text 
)
private
Publish feedback message for Foxglove display.

Member Data Documentation

◆ alias_index

digital_twin.room_interpreter.RoomInterpreterNode.alias_index

◆ feedback_pub

digital_twin.room_interpreter.RoomInterpreterNode.feedback_pub

◆ goal_pub

digital_twin.room_interpreter.RoomInterpreterNode.goal_pub

◆ rooms

digital_twin.room_interpreter.RoomInterpreterNode.rooms

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