Hand interface.
More...
#include <Interface.hh>
|
| static const grasp::msgs::Target_Type | FORCE |
| | Direct force/torque application. More...
|
| |
| static const grasp::msgs::Target_Type | POSITION |
| | Position controller target. More...
|
| |
| static const grasp::msgs::Target_Type | VELOCITY |
| | Velocity controller target. More...
|
| |
| void closeFingers |
( |
double |
timeout = -1, |
|
|
bool |
apply_force = false |
|
) |
| |
Clenches fingers and closes hand.
- Parameters
-
| timeout | Timer value |
| apply_force | Wether to bypass PIDs and apply force/torque directly |
| std::string getRobotName |
( |
| ) |
|
Gets robot name.
- Returns
- Robot name string
| ignition::math::Matrix4d getTransformBaseGripper |
( |
| ) |
|
Get T base to gripper frame.
- Returns
- Rigid transform from base link to gripper frame
| bool init |
( |
const std::string & |
config_file, |
|
|
const std::string & |
robot |
|
) |
| |
Initalizes interface with config file.
- Returns
- True on success, false otherwise.
| void moveFingers |
( |
double |
value | ) |
|
|
private |
| void moveJoint |
( |
const char * |
joint, |
|
|
double |
value |
|
) |
| |
|
private |
| void openFingers |
( |
double |
timeout = -1, |
|
|
bool |
set_position = false |
|
) |
| |
Releases fingers and opens hand.
- Parameters
-
| timeout | Timer value |
| set_position | Set joint position to target value |
| int processKeypress |
( |
char |
key | ) |
|
|
private |
| void raiseHand |
( |
double |
timeout = -1 | ) |
|
Sends reset signal to hand plugin.
| void setJoints |
( |
std::vector< std::string > & |
joints, |
|
|
std::vector< double > & |
values |
|
) |
| |
|
private |
| void setPose |
( |
ignition::math::Pose3d |
pose, |
|
|
double |
timeout = -1 |
|
) |
| |
Sets hand pose.
Sets hand pose using virtual joints
- Parameters
-
| pose | New hand pose |
| timeout | Timer value |
| const grasp::msgs::Target_Type FORCE |
|
static |
Initial value:
Direct force/torque application.
| std::vector<std::string> joints |
|
private |
Name of actuated robot joints.
| gazebo::transport::NodePtr node |
|
private |
Gazebo communication node.
| const grasp::msgs::Target_Type POSITION |
|
static |
Initial value:
Position controller target.
| gazebo::transport::PublisherPtr pub |
|
private |
Name of robot instance in Gazebo.
| std::map<std::string, double> state |
|
private |
Map with (name: value) states of each actuated joint.
| ignition::math::Matrix4d t_base_gripper |
|
private |
Rigid transform from base link to gripper frame.
| const grasp::msgs::Target_Type VELOCITY |
|
static |
Initial value:
Velocity controller target.
The documentation for this class was generated from the following files: