From 05bbb949294c0e9f2a85bcf59a2d51c8134c48aa Mon Sep 17 00:00:00 2001 From: Jari Nippula Date: Thu, 7 Nov 2024 15:12:51 +0200 Subject: [PATCH] Use server port 22223 --- src/mocap_pose.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/mocap_pose.cpp b/src/mocap_pose.cpp index 8e63b81..d8fc62c 100644 --- a/src/mocap_pose.cpp +++ b/src/mocap_pose.cpp @@ -314,7 +314,7 @@ void MocapPose::WorkerThread() if (!rtProtocol.Connected()) { if (!rtProtocol.Connect(impl_->serverAddress.c_str(), - impl_->basePort, + impl_->basePort+1, &udpPort, impl_->sdkMajorVersion, impl_->sdkMinorVersion, @@ -323,7 +323,7 @@ void MocapPose::WorkerThread() RCLCPP_WARN(get_logger(), "Trying to connect to %s:%d : %s", impl_->serverAddress.c_str(), - impl_->basePort, + impl_->basePort+1, rtProtocol.GetErrorString()); std::this_thread::sleep_for(std::chrono::milliseconds(100)); continue; @@ -331,7 +331,7 @@ void MocapPose::WorkerThread() else { RCLCPP_INFO( - get_logger(), "Succesfully connected to %s:%d", impl_->serverAddress.c_str(), impl_->basePort); + get_logger(), "Succesfully connected to %s:%d", impl_->serverAddress.c_str(), impl_->basePort+1); } }