Public Member Functions | |
void | Connect () |
void | Disconnect () |
bool | ok () |
void | produce_diagnostics (diagnostic_updater::DiagnosticStatusWrapper &stat) |
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 |
PTU46 * | m_pantilt |
diagnostic_updater::Updater * | m_updater |
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 29 of file ptu46_node.cc.
PTU46::PTU46_Node::PTU46_Node | ( | ros::NodeHandle & | node_handle | ) |
Definition at line 57 of file ptu46_node.cc.
Definition at line 64 of file ptu46_node.cc.
void PTU46::PTU46_Node::Connect | ( | ) |
Opens the connection to the PTU and sets appropriate parameters. Also manages subscriptions/publishers
Definition at line 71 of file ptu46_node.cc.
void PTU46::PTU46_Node::Disconnect | ( | ) |
Disconnect
Definition at line 118 of file ptu46_node.cc.
bool PTU46::PTU46_Node::ok | ( | ) | [inline] |
Definition at line 36 of file ptu46_node.cc.
Definition at line 139 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 126 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 149 of file ptu46_node.cc.
ros::Publisher PTU46::PTU46_Node::m_joint_pub [protected] |
Definition at line 53 of file ptu46_node.cc.
ros::Subscriber PTU46::PTU46_Node::m_joint_sub [protected] |
Definition at line 54 of file ptu46_node.cc.
ros::NodeHandle PTU46::PTU46_Node::m_node [protected] |
Definition at line 52 of file ptu46_node.cc.
PTU46* PTU46::PTU46_Node::m_pantilt [protected] |
Definition at line 51 of file ptu46_node.cc.
diagnostic_updater::Updater* PTU46::PTU46_Node::m_updater [protected] |
Definition at line 50 of file ptu46_node.cc.