refactor(navigation): Update ChannelSubscriberPtr to use specific message type

- Changed ChannelSubscriberPtr to ChannelSubscriberPtr<std_msgs::msg::dds_::String_> for slamInfo and slamKeyInfo in navigation.hpp and navigation.cpp.
- Updated initialization of subscribers to reflect the new type specification.
This commit is contained in:
2025-09-22 14:50:52 +08:00
parent 6b9ad80757
commit 48cae46960
2 changed files with 4 additions and 4 deletions

View File

@@ -83,8 +83,8 @@ private:
void slamInfoHandler(const void *message);
void slamKeyInfoHandler(const void *message);
unitree::robot::ChannelSubscriberPtr subSlamInfo;
unitree::robot::ChannelSubscriberPtr subSlamKeyInfo;
unitree::robot::ChannelSubscriberPtr<std_msgs::msg::dds_::String_> subSlamInfo;
unitree::robot::ChannelSubscriberPtr<std_msgs::msg::dds_::String_> subSlamKeyInfo;
poseDate currentPose;
bool is_arrived = false;