Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F65434650
nmpf_node.hpp
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Mon, Jun 3, 19:03
Size
1 KB
Mime Type
text/x-c++
Expires
Wed, Jun 5, 19:03 (2 d)
Engine
blob
Format
Raw Data
Handle
18071670
Attached To
R1517 test_package
nmpf_node.hpp
View Options
#ifndef NMPF_NODE_HPP
#define NMPF_NODE_HPP
#include "ros/ros.h"
#include "sensor_msgs/MultiDOFJointState.h"
#include "std_msgs/Int32MultiArray.h"
#include "test_package/aircraft_controls.h"
#include "geometry_msgs/PoseStamped.h"
#include "test_package/mpc_diagnostic.h"
#include "boost/thread/mutex.hpp"
#include "kiteNMPF.h"
#include "integrator.h"
class
KiteNMPF_Node
{
public
:
KiteNMPF_Node
(
const
ros
::
NodeHandle
&
_nh
,
const
SimpleKinematicKiteProperties
&
kite_props
,
const
AlgorithmProperties
&
algo_props
);
virtual
~
KiteNMPF_Node
(){}
ros
::
Time
last_computed_control
;
void
filterCallback
(
const
sensor_msgs
::
MultiDOFJointState
::
ConstPtr
&
msg
);
//void compute_control(const geometry_msgs::PoseStamped &_pose);
void
compute_control
();
void
publish
();
void
publish_trajectory
();
void
publish_mpc_diagnostic
();
void
initialize
(){
m_initialized
=
true
;}
bool
is_initialized
(){
return
m_initialized
;}
boost
::
mutex
m_mutex
;
double
comp_time_ms
;
private
:
casadi
::
DM
control
;
casadi
::
DM
kite_state
;
ros
::
Publisher
control_pub
;
ros
::
Publisher
traj_pub
;
ros
::
Publisher
diagnostic_pub
;
ros
::
Subscriber
state_sub
;
/** handle instance to access node params */
std
::
shared_ptr
<
ros
::
NodeHandle
>
nh
;
/** NMPF instance */
std
::
shared_ptr
<
KiteNMPF
>
controller
;
std
::
shared_ptr
<
ODESolver
>
solver
;
bool
m_initialized
;
double
transport_delay
;
casadi
::
DM
convertToDM
(
const
sensor_msgs
::
MultiDOFJointState
&
_value
);
};
#endif
// NMPF_NODE_HPP
Event Timeline
Log In to Comment