mirror of
https://github.com/orbbec/OrbbecSDK_ROS2.git
synced 2026-10-04 20:17:47 +08:00
Fix device connection loop condition
This commit is contained in:
@@ -165,7 +165,7 @@ void OBCameraNodeDriver::checkConnectTimer() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
void OBCameraNodeDriver::queryDevice() {
|
void OBCameraNodeDriver::queryDevice() {
|
||||||
while (rclcpp::ok() && !device_connected_.load()) {
|
while (rclcpp::ok() && is_alive_ && !device_connected_.load()) {
|
||||||
if (!net_device_ip_.empty() && net_device_port_ != 0) {
|
if (!net_device_ip_.empty() && net_device_port_ != 0) {
|
||||||
connectNetDevice(net_device_ip_, net_device_port_);
|
connectNetDevice(net_device_ip_, net_device_port_);
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Reference in New Issue
Block a user