Skip to content

ReflexUSBHand consturctor breaks global/relative namespace scoping #32

@OAkyildiz

Description

@OAkyildiz

in reflex/src/reflex/reflex_usb_hand.py

'class ReflexUSBHand(ReflexHand):
    def __init__(self):
        self.usb_hand_type = rospy.get_param('usb_hand_type')  
        self.init_namespace = '/' + self.usb_hand_type

sets the namespace to hand type as opposed to __init__(self, name): in the older 'reflex_sf_hand.py' where it would set the anem to given launch arg.

This version predefines the namespace as the type and still uses it for functionality defined by type, thus limiting the configuration options. Also, the preceding slash forces looking into root instead of a given namespace. Most critically, the node looks at /<< handtype >> for params instead of the user-given name of the hand.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions