include
generic_control_toolbox
controller_action_node.hpp
Go to the documentation of this file.
1
#ifndef __CONTROLLER_ACTION_NODE__
2
#define __CONTROLLER_ACTION_NODE__
3
4
#include <sensor_msgs/JointState.h>
5
#include <
generic_control_toolbox/controller_template.hpp
>
6
#include <stdexcept>
7
8
namespace
generic_control_toolbox
9
{
15
class
ControllerActionNode
16
{
17
public
:
18
ControllerActionNode
();
19
~ControllerActionNode
();
20
29
void
runController
(
ControllerBase
&controller);
30
31
private
:
32
void
jointStatesCb
(
const
sensor_msgs::JointState::ConstPtr &msg);
33
34
ros::NodeHandle
nh_
;
35
sensor_msgs::JointState
state_
;
36
ros::Subscriber
joint_state_sub_
;
37
ros::Publisher
state_pub_
;
38
bool
got_first_
;
39
double
loop_rate_
;
40
};
41
}
// namespace generic_control_toolbox
42
#endif
ros::NodeHandle
generic_control_toolbox::ControllerActionNode::joint_state_sub_
ros::Subscriber joint_state_sub_
Definition:
controller_action_node.hpp:36
generic_control_toolbox::ControllerActionNode::loop_rate_
double loop_rate_
Definition:
controller_action_node.hpp:39
generic_control_toolbox::ControllerActionNode::nh_
ros::NodeHandle nh_
Definition:
controller_action_node.hpp:34
generic_control_toolbox::ControllerActionNode::state_pub_
ros::Publisher state_pub_
Definition:
controller_action_node.hpp:37
generic_control_toolbox::ControllerActionNode::runController
void runController(ControllerBase &controller)
Definition:
controller_action_node.cpp:24
controller_template.hpp
ros::Subscriber
generic_control_toolbox::ControllerActionNode::jointStatesCb
void jointStatesCb(const sensor_msgs::JointState::ConstPtr &msg)
Definition:
controller_action_node.cpp:64
generic_control_toolbox::ControllerActionNode::~ControllerActionNode
~ControllerActionNode()
Definition:
controller_action_node.cpp:22
generic_control_toolbox::ControllerActionNode::state_
sensor_msgs::JointState state_
Definition:
controller_action_node.hpp:35
generic_control_toolbox
Definition:
bag_manager.hpp:8
generic_control_toolbox::ControllerActionNode
Definition:
controller_action_node.hpp:15
generic_control_toolbox::ControllerActionNode::got_first_
bool got_first_
Definition:
controller_action_node.hpp:38
generic_control_toolbox::ControllerBase
Definition:
controller_template.hpp:18
ros::Publisher
generic_control_toolbox::ControllerActionNode::ControllerActionNode
ControllerActionNode()
Definition:
controller_action_node.cpp:5
generic_control_toolbox
Author(s): diogo
autogenerated on Mon Feb 28 2022 22:24:37