set up joystick
This commit is contained in:
parent
2f5459d466
commit
631af97b77
|
@ -3,6 +3,7 @@
|
|||
UnitreeSdk2Bridge::UnitreeSdk2Bridge(mjModel *model, mjData *data) : mj_model_(model), mj_data_(data)
|
||||
{
|
||||
CheckSensor();
|
||||
SetupJoystick();
|
||||
|
||||
if (idl_type_ == 0)
|
||||
{
|
||||
|
|
|
@ -110,7 +110,7 @@ public:
|
|||
void Run();
|
||||
void PrintSceneInformation();
|
||||
void CheckSensor();
|
||||
void SetupJoystick(string device, string js_type, int bits);
|
||||
void SetupJoystick(string device = "/dev/input/js0", string js_type = "xbox", int bits = 16);
|
||||
|
||||
ChannelSubscriberPtr<unitree_go::msg::dds_::LowCmd_> low_cmd_go_suber_;
|
||||
ChannelSubscriberPtr<unitree_hg::msg::dds_::LowCmd_> low_cmd_hg_suber_;
|
||||
|
|
Loading…
Reference in New Issue