include
industrial_robot_status_controller
industrial_robot_status_controller.h
Go to the documentation of this file.
1
19
#ifndef INDUSTRIAL_ROBOT_STATUS_CONTROLLER_INDUSTRIAL_ROBOT_STATUS_CONTROLLER_H_
20
#define INDUSTRIAL_ROBOT_STATUS_CONTROLLER_INDUSTRIAL_ROBOT_STATUS_CONTROLLER_H_
21
22
#include <
industrial_robot_status_interface/industrial_robot_status_interface.h
>
23
24
#include <
controller_interface/controller.h
>
25
#include <industrial_msgs/RobotStatus.h>
26
#include <
realtime_tools/realtime_publisher.h
>
27
28
#include <memory>
29
30
31
namespace
industrial_robot_status_controller
32
{
33
34
35
using
InterfaceType
=
industrial_robot_status_interface::IndustrialRobotStatusInterface
;
36
using
HandleType
=
industrial_robot_status_interface::IndustrialRobotStatusHandle
;
37
38
39
class
IndustrialRobotStatusController
40
:
public
controller_interface::Controller
<InterfaceType>
41
{
42
public
:
43
IndustrialRobotStatusController
() =
default
;
44
45
virtual
~IndustrialRobotStatusController
()
override
{}
46
47
bool
init
(
48
InterfaceType
* hw,
49
ros::NodeHandle
& root_node_handle,
50
ros::NodeHandle
& controller_node_handle)
override
;
51
void
starting
(
const
ros::Time
& time)
override
;
52
void
update
(
const
ros::Time
& time,
const
ros::Duration
& period)
override
;
53
54
private
:
55
InterfaceType
*
robot_status_interface_
{};
56
std::unique_ptr<HandleType>
robot_status_handle_
{};
57
58
realtime_tools::RealtimePublisher<industrial_msgs::RobotStatus>
robot_status_pub_
;
59
ros::Time
last_publish_time_
;
60
double
publish_rate_
;
61
};
62
63
64
}
// namespace industrial_robot_status_controller
65
66
#endif
industrial_robot_status_controller::IndustrialRobotStatusController::init
bool init(InterfaceType *hw, ros::NodeHandle &root_node_handle, ros::NodeHandle &controller_node_handle) override
Definition:
controller.cpp:30
realtime_publisher.h
industrial_robot_status_controller::IndustrialRobotStatusController
Definition:
industrial_robot_status_controller.h:39
industrial_robot_status_controller::IndustrialRobotStatusController::update
void update(const ros::Time &time, const ros::Duration &period) override
Definition:
controller.cpp:103
industrial_robot_status_controller
Definition:
industrial_robot_status_controller.h:31
industrial_robot_status_controller::IndustrialRobotStatusController::~IndustrialRobotStatusController
virtual ~IndustrialRobotStatusController() override
Definition:
industrial_robot_status_controller.h:45
controller_interface::Controller
industrial_robot_status_interface::IndustrialRobotStatusHandle
realtime_tools::RealtimePublisher< industrial_msgs::RobotStatus >
industrial_robot_status_controller::IndustrialRobotStatusController::last_publish_time_
ros::Time last_publish_time_
Definition:
industrial_robot_status_controller.h:59
controller.h
industrial_robot_status_interface.h
industrial_robot_status_interface::IndustrialRobotStatusInterface
industrial_robot_status_controller::IndustrialRobotStatusController::starting
void starting(const ros::Time &time) override
Definition:
controller.cpp:75
ros::Time
industrial_robot_status_controller::IndustrialRobotStatusController::robot_status_pub_
realtime_tools::RealtimePublisher< industrial_msgs::RobotStatus > robot_status_pub_
Definition:
industrial_robot_status_controller.h:58
industrial_robot_status_controller::IndustrialRobotStatusController::robot_status_interface_
InterfaceType * robot_status_interface_
Definition:
industrial_robot_status_controller.h:55
industrial_robot_status_controller::IndustrialRobotStatusController::robot_status_handle_
std::unique_ptr< HandleType > robot_status_handle_
Definition:
industrial_robot_status_controller.h:56
industrial_robot_status_controller::IndustrialRobotStatusController::publish_rate_
double publish_rate_
Definition:
industrial_robot_status_controller.h:60
ros::Duration
ros::NodeHandle
industrial_robot_status_controller::IndustrialRobotStatusController::IndustrialRobotStatusController
IndustrialRobotStatusController()=default
industrial_robot_status_controller
Author(s): G.A. vd. Hoorn (TU Delft Robotics Institute)
autogenerated on Sun Jul 2 2023 02:32:38