1
0
mirror of https://gitlab.com/obbart/universal_robots_ros_driver.git synced 2026-04-10 10:00:48 +02:00

Added more enum documentation

This commit is contained in:
Felix Mauch
2019-09-25 09:10:19 +02:00
parent bca3a6d524
commit 3b4bb15147
8 changed files with 34 additions and 8 deletions

View File

@@ -31,12 +31,15 @@ namespace ur_driver
{ {
namespace comm namespace comm
{ {
/*!
* \brief State the socket can be in
*/
enum class SocketState enum class SocketState
{ {
Invalid, Invalid, ///< Socket is initialized or setup failed
Connected, Connected, ///< Socket is connected and ready to use
Disconnected, Disconnected, ///< Socket is disconnected and cannot be used
Closed Closed ///< Connection to socket got closed
}; };
/*! /*!

View File

@@ -40,6 +40,9 @@ namespace primary_interface
{ {
static const int UR_PRIMARY_PORT = 30001; static const int UR_PRIMARY_PORT = 30001;
static const int UR_SECONDARY_PORT = 30002; static const int UR_SECONDARY_PORT = 30002;
/*!
* \brief Possible RobotPackage types
*/
enum class RobotPackageType : int8_t enum class RobotPackageType : int8_t
{ {
DISCONNECT = -1, DISCONNECT = -1,

View File

@@ -34,6 +34,9 @@ namespace ur_driver
{ {
namespace primary_interface namespace primary_interface
{ {
/*!
* \brief Possible RobotMessage types
*/
enum class RobotMessagePackageType : uint8_t enum class RobotMessagePackageType : uint8_t
{ {
ROBOT_MESSAGE_TEXT = 0, ROBOT_MESSAGE_TEXT = 0,

View File

@@ -37,6 +37,9 @@ namespace ur_driver
{ {
namespace primary_interface namespace primary_interface
{ {
/*!
* \brief Possible RobotState types
*/
enum class RobotStateType : uint8_t enum class RobotStateType : uint8_t
{ {
ROBOT_MODE_DATA = 0, ROBOT_MODE_DATA = 0,

View File

@@ -52,6 +52,9 @@
namespace ur_driver namespace ur_driver
{ {
/*!
* \brief Possible states for robot control
*/
enum class PausingState enum class PausingState
{ {
PAUSED, PAUSED,

View File

@@ -38,6 +38,9 @@ namespace ur_driver
{ {
namespace rtde_interface namespace rtde_interface
{ {
/*!
* \brief Possible values for the runtime state
*/
enum class RUNTIME_STATE : uint32_t enum class RUNTIME_STATE : uint32_t
{ {
STOPPING = 0, STOPPING = 0,

View File

@@ -38,6 +38,9 @@ namespace ur_driver
{ {
namespace rtde_interface namespace rtde_interface
{ {
/*!
* \brief Possible package types
*/
enum class PackageType : uint8_t enum class PackageType : uint8_t
{ {
RTDE_REQUEST_PROTOCOL_VERSION = 86, // ascii V RTDE_REQUEST_PROTOCOL_VERSION = 86, // ascii V

View File

@@ -28,8 +28,13 @@
#ifndef UR_RTDE_DRIVER_UR_VERSION_INFORMATION_H_INCLUDED #ifndef UR_RTDE_DRIVER_UR_VERSION_INFORMATION_H_INCLUDED
#define UR_RTDE_DRIVER_UR_VERSION_INFORMATION_H_INCLUDED #define UR_RTDE_DRIVER_UR_VERSION_INFORMATION_H_INCLUDED
#include <ur_rtde_driver/types.h>
namespace ur_driver namespace ur_driver
{ {
/*!
* \brief Struct containing a robot's version information
*/
struct VersionInformation struct VersionInformation
{ {
VersionInformation() VersionInformation()
@@ -39,10 +44,10 @@ struct VersionInformation
bugfix = 0; bugfix = 0;
build = 0; build = 0;
} }
uint32_t major; uint32_t major; ///< Major version number
uint32_t minor; uint32_t minor; ///< Minor version number
uint32_t bugfix; uint32_t bugfix; ///< Bugfix version number
uint32_t build; uint32_t build; ///< Build number
}; };
} // namespace ur_driver } // namespace ur_driver