Public Member Functions | Protected Attributes | List of all members
PTU46::PTU46_Node Class Reference

Public Member Functions

void Connect ()
 
void Disconnect ()
 
bool ok ()
 
 PTU46_Node (ros::NodeHandle &node_handle)
 
void SetGoal (const sensor_msgs::JointState::ConstPtr &msg)
 
void spinOnce ()
 
 ~PTU46_Node ()
 

Protected Attributes

ros::Publisher m_joint_pub
 
ros::Subscriber m_joint_sub
 
ros::NodeHandle m_node
 
PTU46m_pantilt
 

Detailed Description

PTU46 ROS Package Copyright (C) 2009 Erik Karulf (erik@.nosp@m.cse..nosp@m.wustl.nosp@m..edu)

This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA

Definition at line 36 of file ptu46_node.cc.

Constructor & Destructor Documentation

PTU46::PTU46_Node::PTU46_Node ( ros::NodeHandle &  node_handle)

Definition at line 61 of file ptu46_node.cc.

PTU46::PTU46_Node::~PTU46_Node ( )

Definition at line 66 of file ptu46_node.cc.

Member Function Documentation

void PTU46::PTU46_Node::Connect ( )

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

Definition at line 72 of file ptu46_node.cc.

void PTU46::PTU46_Node::Disconnect ( )

Disconnect

Definition at line 130 of file ptu46_node.cc.

bool PTU46::PTU46_Node::ok ( )
inline

Definition at line 43 of file ptu46_node.cc.

void PTU46::PTU46_Node::SetGoal ( const sensor_msgs::JointState::ConstPtr &  msg)

Callback for getting new Goal JointState

Definition at line 138 of file ptu46_node.cc.

void PTU46::PTU46_Node::spinOnce ( )

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

Definition at line 197 of file ptu46_node.cc.

Member Data Documentation

ros::Publisher PTU46::PTU46_Node::m_joint_pub
protected

Definition at line 57 of file ptu46_node.cc.

ros::Subscriber PTU46::PTU46_Node::m_joint_sub
protected

Definition at line 58 of file ptu46_node.cc.

ros::NodeHandle PTU46::PTU46_Node::m_node
protected

Definition at line 56 of file ptu46_node.cc.

PTU46* PTU46::PTU46_Node::m_pantilt
protected

Definition at line 55 of file ptu46_node.cc.


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


ptu46
Author(s): Erik Karulf, David Lu
autogenerated on Mon Mar 2 2015 01:32:49