Public Member Functions | Private Attributes
SVHNode Class Reference

#include <SVHNode.h>

List of all members.

Public Member Functions

void connectCallback (const std_msgs::Empty &)
 Callback function for connecting to SCHUNK five finger hand.
void dynamic_reconfigure_callback (svh_controller::svhConfig &config, uint32_t level)
 Dynamic reconfigure callback to update changing parameters.
void enableChannelCallback (const std_msgs::Int8ConstPtr &channel)
 Callback function to enable channels of SCHUNK five finger hand.
std_msgs::Float64MultiArray getChannelCurrents ()
 getChannelCurrents Returns the current values of the channels as raw output
sensor_msgs::JointState getChannelFeedback ()
 SVHNode::getChannelFeedback Gets the latest received positions and efforts from the driver.
void jointStateCallback (const sensor_msgs::JointStateConstPtr &input)
 Callback function for setting channel target positions to SCHUNK five finger hand.
void resetChannelCallback (const std_msgs::Int8ConstPtr &channel)
 Callback function to reset/home channels of SCHUNK five finger hand.
 SVHNode (const ros::NodeHandle &nh)
 SVHNode constructs a new node object that handles most of the functionality.
 ~SVHNode ()
 Default DTOR.

Private Attributes

std_msgs::Float64MultiArray channel_currents
 Current Value message template.
sensor_msgs::JointState channel_pos_
 joint state message template
int connect_retry_count
 Number of times the connect routine tries to connect in case that we receive at least one package.
boost::shared_ptr
< driver_svh::SVHFingerManager
fm_
 Handle to the SVH finger manager for library access.
std::string name_prefix
 Prefix for the driver to identify joint names if the Driver should expext "left_hand_Pinky" than the prefix is left_hand.
std::string serial_device_name_
 Serial device to use for communication with hardware.

Detailed Description

Definition at line 48 of file SVHNode.h.


Constructor & Destructor Documentation

SVHNode constructs a new node object that handles most of the functionality.

Parameters:
nhROS Nodehandle

Definition at line 39 of file SVHNode.cpp.

Default DTOR.

Definition at line 219 of file SVHNode.cpp.


Member Function Documentation

void SVHNode::connectCallback ( const std_msgs::Empty &  )

Callback function for connecting to SCHUNK five finger hand.

Definition at line 235 of file SVHNode.cpp.

void SVHNode::dynamic_reconfigure_callback ( svh_controller::svhConfig &  config,
uint32_t  level 
)

Dynamic reconfigure callback to update changing parameters.

Definition at line 226 of file SVHNode.cpp.

void SVHNode::enableChannelCallback ( const std_msgs::Int8ConstPtr &  channel)

Callback function to enable channels of SCHUNK five finger hand.

Definition at line 265 of file SVHNode.cpp.

std_msgs::Float64MultiArray SVHNode::getChannelCurrents ( )

getChannelCurrents Returns the current values of the channels as raw output

Returns:
Array containing the current values of the channels in mA

Definition at line 362 of file SVHNode.cpp.

sensor_msgs::JointState SVHNode::getChannelFeedback ( )

SVHNode::getChannelFeedback Gets the latest received positions and efforts from the driver.

Returns:
The current joint states (Position and Efforts)

Definition at line 338 of file SVHNode.cpp.

void SVHNode::jointStateCallback ( const sensor_msgs::JointStateConstPtr &  input)

Callback function for setting channel target positions to SCHUNK five finger hand.

Definition at line 271 of file SVHNode.cpp.

void SVHNode::resetChannelCallback ( const std_msgs::Int8ConstPtr &  channel)

Callback function to reset/home channels of SCHUNK five finger hand.

Definition at line 249 of file SVHNode.cpp.


Member Data Documentation

std_msgs::Float64MultiArray SVHNode::channel_currents [private]

Current Value message template.

Definition at line 104 of file SVHNode.h.

sensor_msgs::JointState SVHNode::channel_pos_ [private]

joint state message template

Definition at line 101 of file SVHNode.h.

Number of times the connect routine tries to connect in case that we receive at least one package.

Definition at line 95 of file SVHNode.h.

boost::shared_ptr<driver_svh::SVHFingerManager> SVHNode::fm_ [private]

Handle to the SVH finger manager for library access.

Definition at line 89 of file SVHNode.h.

std::string SVHNode::name_prefix [private]

Prefix for the driver to identify joint names if the Driver should expext "left_hand_Pinky" than the prefix is left_hand.

Definition at line 98 of file SVHNode.h.

std::string SVHNode::serial_device_name_ [private]

Serial device to use for communication with hardware.

Definition at line 92 of file SVHNode.h.


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


schunk_svh_driver
Author(s): Georg Heppner
autogenerated on Fri Aug 28 2015 12:59:20