Skip to content

Commit 2cd3023

Browse files
committed
Temporarily comment out unitree_hg sportmodestate idl
1 parent 3d7f4a5 commit 2cd3023

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

include/unitree/dds_wrapper/common/Subscription.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,12 +68,13 @@ class SubscriptionBase
6868
}
6969

7070
MessageType msg_;
71+
std::mutex mutex_;
72+
7173
protected:
7274
virtual void pre_communication() {} // something before receiving message
7375
virtual void post_communication() {} // something after receiving message
7476

7577
uint32_t timeout_ms_{1000};
76-
std::mutex mutex_;
7778
unitree::robot::ChannelSubscriberPtr<MessageType> sub_;
7879
std::chrono::steady_clock::time_point last_update_time_;
7980
};

include/unitree/dds_wrapper/robots/g1/g1_sub.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
#include <unitree/idl/hg/LowState_.hpp>
1313
#include <unitree/idl/hg/HandCmd_.hpp>
1414
#include <unitree/idl/hg/HandState_.hpp>
15-
#include <unitree/idl/hg/SportModeState_.hpp>
15+
// #include <unitree/idl/hg/SportModeState_.hpp>
1616
#include <unitree/idl/go2/MotorStates_.hpp>
1717

1818
namespace unitree

0 commit comments

Comments
 (0)