ADORe
ADORe is a modular open source software library and toolkit for decision making, planning, control and simulation of automated vehicles
schedulernotificationconversion.h
Go to the documentation of this file.
1 /********************************************************************************
2  * Copyright (C) 2017-2023 German Aerospace Center (DLR).
3  * Eclipse ADORe, Automated Driving Open Research https://eclipse.org/adore
4  *
5  * This program and the accompanying materials are made available under the
6  * terms of the Eclipse Public License 2.0 which is available at
7  * http://www.eclipse.org/legal/epl-2.0.
8  *
9  * SPDX-License-Identifier: EPL-2.0
10  *
11  * Contributors:
12  * Matthias Nichting - initial API and implementation
13  ********************************************************************************/
14 
15 #include <adore_if_ros_scheduling_msg/SchedulerNotification.h>
17 
19 {
25  {
26  public:
27  adore_scheduling::SchedulerNotification operator()(adore_if_ros_scheduling_msg::SchedulerNotificationConstPtr msg)
28  {
29  return adore_scheduling::SchedulerNotification(msg->identifier, msg->upperTimeLimit.sec,
30  msg->upperTimeLimit.nsec);
31  }
32  adore_if_ros_scheduling_msg::SchedulerNotification operator()(const adore_scheduling::SchedulerNotification &sn)
33  {
34  adore_if_ros_scheduling_msg::SchedulerNotification msg;
35  msg.upperTimeLimit.sec = sn.getUpperTimeLimitSec();
36  msg.upperTimeLimit.nsec = sn.getUpperTimeLimitNsec();
37  msg.identifier = sn.getID();
38  return msg;
39  }
40  };
41 } // namespace adore_if_ros_scheduling
Definition: schedulernotificationconversion.h:25
adore_scheduling::SchedulerNotification operator()(adore_if_ros_scheduling_msg::SchedulerNotificationConstPtr msg)
Definition: schedulernotificationconversion.h:27
adore_if_ros_scheduling_msg::SchedulerNotification operator()(const adore_scheduling::SchedulerNotification &sn)
Definition: schedulernotificationconversion.h:32
Definition: schedulernotification.h:26
uint32_t getUpperTimeLimitSec() const
Definition: schedulernotification.h:36
uint32_t getUpperTimeLimitNsec() const
Definition: schedulernotification.h:40
unsigned int getID() const
Definition: schedulernotification.h:64
Definition: adore_if_ros_scheduling_constants.h:19