PTU46::PTU46_Node Class Reference

List of all members.

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@cse.wustl.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 33 of file ptu46_node.cc.


Constructor & Destructor Documentation

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

Definition at line 58 of file ptu46_node.cc.

PTU46::PTU46_Node::~PTU46_Node (  ) 

Definition at line 63 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 69 of file ptu46_node.cc.

void PTU46::PTU46_Node::Disconnect (  ) 

Disconnect

Definition at line 126 of file ptu46_node.cc.

bool PTU46::PTU46_Node::ok (  )  [inline]

Definition at line 19 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 134 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 193 of file ptu46_node.cc.


Member Data Documentation

ros::Publisher PTU46::PTU46_Node::m_joint_pub [protected]

Definition at line 33 of file ptu46_node.cc.

ros::Subscriber PTU46::PTU46_Node::m_joint_sub [protected]

Definition at line 34 of file ptu46_node.cc.

ros::NodeHandle PTU46::PTU46_Node::m_node [protected]

Definition at line 32 of file ptu46_node.cc.

Definition at line 31 of file ptu46_node.cc.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Defines


ptu46
Author(s): Erik Karulf, David Lu
autogenerated on Wed Jul 23 04:35:25 2014