21 #include <std_msgs/String.h>
48 std::cout <<
"wait for the scheduler ..." << std::endl;
49 std::this_thread::sleep_for(std::chrono::seconds(1));
52 std::cout <<
"scheduler id : " <<
id << std::endl;
58 msg.data = std::to_string(
m_sn.
getID()) +
":" + name;
Definition: schedulernotificationconversion.h:25
Definition: schedulernotificationmanager.h:32
ros::Publisher m_notificationWriter
Definition: schedulernotificationmanager.h:35
void resume() override
Definition: schedulernotificationmanager.h:75
ros::Publisher m_clientNameWriter
Definition: schedulernotificationmanager.h:36
SchedulerNotificationConversion m_schedulerNotificationConversion
Definition: schedulernotificationmanager.h:37
void publishClientName(std::string name) override
Definition: schedulernotificationmanager.h:55
ros::NodeHandle * m_pN
Definition: schedulernotificationmanager.h:34
void registerAtScheduler() override
Definition: schedulernotificationmanager.h:61
SchedulerNotificationManager(ros::NodeHandle *n, unsigned int id, uint32_t duration, bool reg=true)
Definition: schedulernotificationmanager.h:40
void notifyScheduler(uint32_t sec, uint32_t nsec) override
Definition: schedulernotificationmanager.h:66
void pause() override
Definition: schedulernotificationmanager.h:74
Definition: aschedulernotificationmanager.h:24
uint32_t m_duration
Definition: aschedulernotificationmanager.h:27
adore_scheduling::SchedulerNotification m_sn
Definition: aschedulernotificationmanager.h:26
ASchedulerNotificationManager(uint32_t duration)
Definition: aschedulernotificationmanager.h:31
bool m_pause
Definition: aschedulernotificationmanager.h:28
void setUpperTimeLimit(uint32_t sec, uint32_t nsec)
Definition: schedulernotification.h:48
void setID(unsigned int id)
Definition: schedulernotification.h:68
unsigned int getID() const
Definition: schedulernotification.h:64
Definition: adore_if_ros_scheduling_constants.h:19
const char TOPIC_NAME_CLIENT_NAME[]
Definition: adore_if_ros_scheduling_constants.h:22
const char TOPIC_NAME_SCHEDULER_NOTIFICATION[]
Definition: adore_if_ros_scheduling_constants.h:23
Definition: aschedulernotificationmanager.h:19