Public Member Functions | Protected Attributes | List of all members
flir_ptu_driver::Node Class Reference

Public Member Functions

void cmdCallback (const sensor_msgs::JointState::ConstPtr &msg)
 
void connect ()
 
void disconnect ()
 
 Node (ros::NodeHandle &node_handle)
 
bool ok ()
 
void produce_diagnostics (diagnostic_updater::DiagnosticStatusWrapper &stat)
 
void resetCallback (const std_msgs::Bool::ConstPtr &msg)
 
void spinCallback (const ros::TimerEvent &)
 
 ~Node ()
 

Protected Attributes

double default_velocity_
 
std::string m_joint_name_prefix
 
ros::Publisher m_joint_pub
 
ros::Subscriber m_joint_sub
 
ros::NodeHandle m_node
 
PTUm_pantilt
 
ros::Subscriber m_reset_sub
 
serial::Serial m_ser
 
diagnostic_updater::Updaterm_updater
 

Detailed Description

Definition at line 44 of file node.cpp.

Constructor & Destructor Documentation

flir_ptu_driver::Node::Node ( ros::NodeHandle node_handle)
explicit

Definition at line 80 of file node.cpp.

flir_ptu_driver::Node::~Node ( )

Definition at line 90 of file node.cpp.

Member Function Documentation

void flir_ptu_driver::Node::cmdCallback ( const sensor_msgs::JointState::ConstPtr &  msg)

Callback for getting new Goal JointState

Definition at line 193 of file node.cpp.

void flir_ptu_driver::Node::connect ( )

Opens the connection to the PTU and sets appropriate parameters. Also manages subscriptions/publishers

Definition at line 98 of file node.cpp.

void flir_ptu_driver::Node::disconnect ( )

Disconnect

Definition at line 176 of file node.cpp.

bool flir_ptu_driver::Node::ok ( )
inline

Definition at line 52 of file node.cpp.

void flir_ptu_driver::Node::produce_diagnostics ( diagnostic_updater::DiagnosticStatusWrapper stat)

Definition at line 226 of file node.cpp.

void flir_ptu_driver::Node::resetCallback ( const std_msgs::Bool::ConstPtr &  msg)

Callback for resetting PTU

Definition at line 186 of file node.cpp.

void flir_ptu_driver::Node::spinCallback ( const ros::TimerEvent )

Publishes a joint_state message with position and speed. Also sends out updated TF info.

Definition at line 237 of file node.cpp.

Member Data Documentation

double flir_ptu_driver::Node::default_velocity_
protected

Definition at line 77 of file node.cpp.

std::string flir_ptu_driver::Node::m_joint_name_prefix
protected

Definition at line 76 of file node.cpp.

ros::Publisher flir_ptu_driver::Node::m_joint_pub
protected

Definition at line 71 of file node.cpp.

ros::Subscriber flir_ptu_driver::Node::m_joint_sub
protected

Definition at line 72 of file node.cpp.

ros::NodeHandle flir_ptu_driver::Node::m_node
protected

Definition at line 70 of file node.cpp.

PTU* flir_ptu_driver::Node::m_pantilt
protected

Definition at line 69 of file node.cpp.

ros::Subscriber flir_ptu_driver::Node::m_reset_sub
protected

Definition at line 73 of file node.cpp.

serial::Serial flir_ptu_driver::Node::m_ser
protected

Definition at line 75 of file node.cpp.

diagnostic_updater::Updater* flir_ptu_driver::Node::m_updater
protected

Definition at line 68 of file node.cpp.


The documentation for this class was generated from the following file:


flir_ptu_driver
Author(s): Erik Karulf , David V. Lu , Nick Hawes
autogenerated on Sun Mar 28 2021 02:27:16