Skip to content

Commit

Permalink
Use server port 22223
Browse files Browse the repository at this point in the history
  • Loading branch information
jnippula committed Nov 7, 2024
1 parent 73a6a59 commit 05bbb94
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/mocap_pose.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -323,15 +323,15 @@ 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;
}
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);
}
}

Expand Down

0 comments on commit 05bbb94

Please sign in to comment.