From f0e516a1a3e67ff9316342793edb13b362975068 Mon Sep 17 00:00:00 2001 From: Sucan126 <632190820@qq.com> Date: Tue, 23 Sep 2025 19:25:39 +0800 Subject: [PATCH] refactor(custom_robot): Remove unused method calls in destructor and stopTraj - Deleted the Close method call for the recharge object in the CustomRobot destructor to simplify resource management. - Removed the Stop method call for the traj_th_ thread in stopTraj, streamlining the stopping process of trajectory control. --- src/custom_robot.cpp | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/custom_robot.cpp b/src/custom_robot.cpp index 20185b2..3026849 100644 --- a/src/custom_robot.cpp +++ b/src/custom_robot.cpp @@ -143,7 +143,6 @@ CustomRobot::~CustomRobot() { } if (recharge_) { - recharge_->Close(); recharge_.reset(); } @@ -283,7 +282,6 @@ void CustomRobot::stopTraj() LOG_INFO("Stopping dynamic trajectory control..."); traj_running_ = false; if (traj_th_) { - traj_th_->Stop(); traj_th_.reset(); } }