holoscan::PoseTreeUCXClient
holoscan::PoseTreeUCXClient
UCX-based client for remote PoseTree synchronization.
This class provides a client that connects to a PoseTreeUCXServer to synchronize PoseTree updates across distributed systems using UCX (Unified Communication X).
This class is NOT thread-safe for its public methods. All public methods must be called from the same thread.
Constructors
PoseTreeUCXClient
Overload 1
Deleted overloads
Destructor
~PoseTreeUCXClient
Destructor - ensures clean shutdown.
Automatically disconnects if still connected, joins the worker thread, and releases all resources. Any errors during disconnect are logged but do not throw exceptions (no-throw guarantee).
Assignment operators
operator=
Deleted overloads
The following overloads are deleted to prevent misuse:
Methods
connect
Connect to a PoseTreeUCXServer.
Starts an internal worker thread that handles UCX communication with the server. The thread runs until disconnect() is called or the destructor runs.
This method blocks until the connection is established or fails
Returns: Success (void) or error status
Parameters
The hostname or IP address of the server
The port number of the server
Whether to request a full snapshot of the pose tree upon connection
disconnect
Disconnect from the server.
Signals the worker thread to stop, waits for it to finish (join), and cleans up all UCX resources. This method is automatically called by the destructor if needed.
This method is idempotent - calling it when already disconnected returns success
This method blocks until the worker thread has fully stopped
Returns: Success (void) or error status
is_running
run
Main worker thread function.
Handles UCX worker progress, processes server messages, and manages the connection. Runs in a separate thread started by connect() and stopped by disconnect().
Static methods
error_to_str
Convert an error code to a human readable error string.
Returns: Human-readable error string.
Parameters
Error code to convert.
Types
Typedefs
Error
Error codes used by this class.