#ifndef _UNITREE_ARM_JOYSTICK_H_ #define _UNITREE_ARM_JOYSTICK_H_ #include #include "unitree_arm_sdk/udp.h" #include "unitree_arm_sdk/cmdPanel.h" #include "unitree_arm_sdk/common/quadruped_common.h" #include "unitree_arm_sdk/common/joystick_common.h" using namespace UNITREE_LEGGED_SDK; class UnitreeJoystick : public CmdPanel{ public: UnitreeJoystick(std::vector events, EmptyAction emptyAction, size_t channelNum = 1, double dt = 0.002); ~UnitreeJoystick(); private: void _read(); void _extractCmd(); xRockerBtnDataStruct _keyData; UDPPort *_udp; HighCmd _udpCmd; HighState _udpState; }; #endif // _UNITREE_ARM_JOYSTICK_H_