include
generic_control_toolbox
joint_position_integrator.hpp
Go to the documentation of this file.
1
#ifndef __VELOCITY_TO_POSITION__
2
#define __VELOCITY_TO_POSITION__
3
4
#include <
ros/ros.h
>
5
#include <kdl/jntarray.hpp>
6
7
namespace
generic_control_toolbox
8
{
13
class
JointPositionIntegrator
14
{
15
public
:
16
JointPositionIntegrator
(
ros::NodeHandle
&nh);
17
~JointPositionIntegrator
() {}
18
31
KDL::JntArray
update
(
const
KDL::JntArray
&q_dot,
const
KDL::JntArray
&q,
32
float
dt);
33
Eigen::VectorXd
update
(
const
Eigen::VectorXd &q_dot,
const
Eigen::VectorXd &q,
34
float
dt);
35
39
void
reset
();
40
41
private
:
42
ros::NodeHandle
nh_
;
43
KDL::JntArray
virt_q_
;
44
float
max_joint_error_
;
45
bool
got_state_
;
46
50
bool
init
();
51
};
52
}
// namespace generic_control_toolbox
53
#endif
generic_control_toolbox::JointPositionIntegrator::max_joint_error_
float max_joint_error_
Definition:
joint_position_integrator.hpp:44
ros::NodeHandle
generic_control_toolbox::JointPositionIntegrator
Definition:
joint_position_integrator.hpp:13
generic_control_toolbox::JointPositionIntegrator::update
KDL::JntArray update(const KDL::JntArray &q_dot, const KDL::JntArray &q, float dt)
Definition:
joint_position_integrator.cpp:18
KDL::JntArray
generic_control_toolbox::JointPositionIntegrator::init
bool init()
Definition:
joint_position_integrator.cpp:67
generic_control_toolbox::JointPositionIntegrator::reset
void reset()
Definition:
joint_position_integrator.cpp:16
generic_control_toolbox::JointPositionIntegrator::nh_
ros::NodeHandle nh_
Definition:
joint_position_integrator.hpp:42
generic_control_toolbox
Definition:
bag_manager.hpp:8
generic_control_toolbox::JointPositionIntegrator::got_state_
bool got_state_
Definition:
joint_position_integrator.hpp:45
ros.h
generic_control_toolbox::JointPositionIntegrator::JointPositionIntegrator
JointPositionIntegrator(ros::NodeHandle &nh)
Definition:
joint_position_integrator.cpp:5
generic_control_toolbox::JointPositionIntegrator::virt_q_
KDL::JntArray virt_q_
Definition:
joint_position_integrator.hpp:43
generic_control_toolbox::JointPositionIntegrator::~JointPositionIntegrator
~JointPositionIntegrator()
Definition:
joint_position_integrator.hpp:17
generic_control_toolbox
Author(s): diogo
autogenerated on Mon Feb 28 2022 22:24:37