ROSEndEffector
ROS End-Effector package: provides a ROS-based set of standard interfaces to command robotics end-effectors in an agnostic fashion.
to

getter to take a single primitive, identified by the name and by the key (e.g. finger involved or joint involved)

There are various version of this get, if you pass the type a vector is returned. For some type, can be easier to use pair or single string as second argument instead of the set of string, when the type is associated with these particular keys (e.g. trig has a single string (the finger used) as key, pinch has a pair (the 2 fingers used for the pinch) ... )

Parameters
primitiveNamethe name of the primitive that we want
keya set of strings to identify the primitive that we want among all the primitives that are called
primitiveNameget a pinch with thumb and index, we will pass "pinch" and a set of two element, "thumb" and "index". Note that for this case we can also pass a pair (and not a set) as second argument
Returns
pointer to the primitive that we were looking for. nullptr if action not found.