25 std::vector<std::shared_ptr<shadow_finger::Finger>>
_fingerVec;
32 Hand(std::initializer_list<std::shared_ptr<shadow_finger::Finger>>
35 assert(fingers_list.size() >= 2);
37 for (
auto finger : fingers_list) {
38 _fingerVec.push_back(finger);
40 ROS_INFO_STREAM(
"Initialized Hand with: " << _fingerVec.size()
48 void addFinger(
const std::shared_ptr<shadow_finger::Finger> &finger) {
49 _fingerVec.push_back(finger);
62 std::vector<std::shared_ptr<shadow_finger::Finger>>
getFingers() {
Utility functions for managing groups of fingers of Shadow Hand. Constructs "Hand" class of shared po...
Definition: shadow_hand.hpp:18
Utility functions for managing groups of fingers of Shadow Hand. Constructs "Hand" class of shared po...
Hand(std::initializer_list< std::shared_ptr< shadow_finger::Finger >> fingers_list)
Constructor for Hand class, takes in arbitrary number of shared pointers to Fingers.
Definition: shadow_hand.hpp:32
std::vector< std::shared_ptr< shadow_finger::Finger > > getFingers()
Return all instances of Fingers in Hand as vector.
Definition: shadow_hand.hpp:62
std::vector< std::shared_ptr< shadow_finger::Finger > > _fingerVec
Vector of the shared pointers to the fingers that we want to control Shared pointers because you cann...
Definition: shadow_hand.hpp:25
void addFinger(const std::shared_ptr< shadow_finger::Finger > &finger)
Add Finger to Hand.
Definition: shadow_hand.hpp:48
int numFingers()
Get number of Fingers in hand.
Definition: shadow_hand.hpp:56