staubli_driver_ros2 main
ROS2 control driver for Staubli robots
Loading...
Searching...
No Matches
Public Types | Static Public Member Functions | List of all members
staubli_robot_driver::SocketFactory Class Reference

Factory for creating communication interfaces. More...

#include <socket.hpp>

Public Types

enum class  ProtocolType { UDP , TCP }
 Communication protocol types. More...
 

Static Public Member Functions

static std::shared_ptr< Socketcreate (ProtocolType type)
 Create a communication interface.
 

Detailed Description

Factory for creating communication interfaces.

Member Enumeration Documentation

◆ ProtocolType

Communication protocol types.

Enumerator
UDP 

UDP socket communication.

TCP 

TCP socket communication.

Member Function Documentation

◆ create()

static std::shared_ptr< Socket > staubli_robot_driver::SocketFactory::create ( ProtocolType  type)
static

Create a communication interface.

Parameters
typeType of protocol to use
Returns
Shared pointer to the created communication interface

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