Classes | Public Member Functions | Private Member Functions | Private Attributes
shadow_robot_standalone::ShadowHand Class Reference

#include <shadow_hand.hpp>

List of all members.

Classes

class  SrRosWrapper

Public Member Functions

bool get_control_type (ControlType &control_type)
std::vector< std::string > get_controlled_joints () const
std::map< std::string,
JointState > & 
get_joint_states () const
std::vector< std::string > get_joints_with_state () const
std::vector< Tactile > & get_tactiles () const
void send_all_positions (const std::vector< double > &targets)
void send_all_torques (const std::vector< double > &targets)
void send_position (const std::string &joint_name, double target)
void send_torque (const std::string &joint_name, double target)
bool set_control_type (ControlType control_type)
 ShadowHand ()
 ~ShadowHand ()

Private Member Functions

ShadowHandoperator= (const ShadowHand &other)
 ShadowHand (const ShadowHand &other)

Private Attributes

SrRosWrapperwrapper_

Detailed Description

Definition at line 40 of file shadow_hand.hpp.


Constructor & Destructor Documentation

Definition at line 9 of file shadow_hand.cpp.

Definition at line 12 of file shadow_hand.cpp.

shadow_robot_standalone::ShadowHand::ShadowHand ( const ShadowHand other) [inline, private]

Definition at line 138 of file shadow_hand.hpp.


Member Function Documentation

Get the control type currently used on the hand.

Parameters:
control_typeEither position control over PWM, or effort control over Torque.
Returns:
true if success.

Definition at line 17 of file shadow_hand.cpp.

Get a list of joint names in the hand that can be controlled

Returns:
vector containing joint names

Definition at line 71 of file shadow_hand.cpp.

Retrieves the latest information about the joints. will be empty if nothing has been published

Returns:
map from joint names to struct containing joint's position, velocity and effort.

Definition at line 47 of file shadow_hand.cpp.

Get a list of joint names in the hand for which state is reported

Returns:
vector containing joint names

Definition at line 59 of file shadow_hand.cpp.

Retrieves the tactile data from the biotacs.

Returns:
A vector of tactiles in the following order: FF, MF, RF, LF, TH

Definition at line 53 of file shadow_hand.cpp.

ShadowHand& shadow_robot_standalone::ShadowHand::operator= ( const ShadowHand other) [inline, private]

Definition at line 140 of file shadow_hand.hpp.

void shadow_robot_standalone::ShadowHand::send_all_positions ( const std::vector< double > &  targets)

Send position targets, in radians, to position controllers of all joints. The order in targets is the same as in response from get_controlled_joints()

Parameters:
positionsin radians for all joints

Definition at line 32 of file shadow_hand.cpp.

void shadow_robot_standalone::ShadowHand::send_all_torques ( const std::vector< double > &  targets)

Send torque targets, to all joints. The order in targets is the same as in response from get_controlled_joints()

Parameters:
torquetargets.

Definition at line 42 of file shadow_hand.cpp.

void shadow_robot_standalone::ShadowHand::send_position ( const std::string &  joint_name,
double  target 
)

Send a position target, in radians, to the given joint's position controller.

Parameters:
joint_nameName of the joint to control
aposition in radians

Definition at line 27 of file shadow_hand.cpp.

void shadow_robot_standalone::ShadowHand::send_torque ( const std::string &  joint_name,
double  target 
)

Send a torque target, to the given joint.

Parameters:
joint_nameName of the joint to control
atorque target.

Definition at line 37 of file shadow_hand.cpp.

Set the control type to be used on the hand.

Parameters:
control_typeEither position control over PWM, or effort control over Torque.
Returns:
true if success.

Definition at line 22 of file shadow_hand.cpp.


Member Data Documentation

Definition at line 136 of file shadow_hand.hpp.


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


sr_standalone
Author(s): Manos Nikolaidis , Yi Li
autogenerated on Fri Aug 28 2015 13:10:49