Go to the documentation of this file.
28 #ifndef UR_CLIENT_LIBRARY_PRIMARY_CONSUMER_H_INCLUDED
29 #define UR_CLIENT_LIBRARY_PRIMARY_CONSUMER_H_INCLUDED
38 #include <condition_variable>
42 namespace primary_interface
133 const auto log_contents =
"Logging an ErrorCodeMessage from the UR Controller Box: " + pkg.
toString();
169 robot_mode_ = std::make_shared<RobotModeData>(pkg);
253 #endif // ifndef UR_CLIENT_LIBRARY_PRIMARY_CONSUMER_H_INCLUDED
virtual bool consume(ConfigurationData &pkg) override
The ErrorCodeMessage class handles the error code messages sent via the primary UR interface.
virtual bool consume(ErrorCodeMessage &pkg) override
Handle an ErrorCodeMessage.
std::mutex robot_mode_mutex_
This messages contains data about the mode of the robot.
Primary consumer implementation.
std::string robotModeString(const RobotMode &mode)
std::shared_ptr< ConfigurationData > getConfigurationData()
Get the latest configuration data.
virtual bool consume(VersionMessage &pkg) override
Handle a VersionMessage.
std::shared_ptr< KinematicsInfo > kinematics_info_
virtual bool consume(RobotState &msg) override
Consume a RobotState.
std::mutex configuration_data_mutex_
#define URCL_LOG_ERROR(...)
The RobotMessage class is a parent class for the different received robot messages.
#define URCL_LOG_DEBUG(...)
std::shared_ptr< VersionInformation > version_information_
int32_t message_argument_
The ConfigurationData class handles the configuration data sent via the primary UR interface.
virtual bool consume(RobotMessage &msg) override
Consume a RobotMessage.
void setErrorCodeMessageCallback(std::function< void(ErrorCode &)> callback_function)
Set callback function which will be triggered whenever error code messages are received.
virtual bool consume(KinematicsInfo &pkg) override
Handle a KinematicsInfo.
virtual std::string toString() const
Produces a human readable representation of the package object.
virtual std::string toString() const
Produces a human readable representation of the package object.
std::shared_ptr< RobotModeData > getRobotModeData()
Get the latest robot mode.
virtual ~PrimaryConsumer()=default
std::shared_ptr< RobotModeData > robot_mode_
std::mutex version_information_mutex_
#define URCL_LOG_INFO(...)
ReportLevel report_level_
The VersionMessage class handles the version messages sent via the primary UR interface.
std::function< void(ErrorCode &)> error_code_message_callback_
#define URCL_LOG_WARN(...)
Base class for a RobotState data packages will be used directly.
std::shared_ptr< ConfigurationData > configuration_data_
std::shared_ptr< KinematicsInfo > getKinematicsInfo()
Get the kinematics info.
std::shared_ptr< VersionInformation > getVersionInformation()
Get the latest version information.
This messages contains information about the robot's calibration. The DH parameters are a combination...
virtual bool consume(RobotModeData &pkg) override
Base consumer for primary packages.
ur_client_library
Author(s): Thomas Timm Andersen, Simon Rasmussen, Felix Exner, Lea Steffen, Tristan Schnell
autogenerated on Mon May 26 2025 02:35:58