mirror of
https://gitlab.com/obbart/universal_robots_ros_driver.git
synced 2026-04-10 01:50:46 +02:00
Implement activation modes of robot_enable service
Adds parameter 'require_activation' to configure when the service should be called (Always, Never, OnStartup).
This commit is contained in:
@@ -12,6 +12,13 @@ enum class RobotState
|
||||
ProtectiveStopped
|
||||
};
|
||||
|
||||
enum class ActivationMode
|
||||
{
|
||||
Always,
|
||||
Never,
|
||||
OnStartup
|
||||
};
|
||||
|
||||
class Service
|
||||
{
|
||||
public:
|
||||
@@ -25,6 +32,7 @@ private:
|
||||
ros::ServiceServer enable_service_;
|
||||
std::vector<Service*> services_;
|
||||
RobotState last_state_;
|
||||
ActivationMode activation_mode_;
|
||||
|
||||
void notify_all(RobotState state);
|
||||
bool handle(SharedRobotModeData& data, bool error);
|
||||
@@ -59,4 +67,4 @@ public:
|
||||
{
|
||||
return true;
|
||||
}
|
||||
};
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user