Skip to content

Commit d53b772

Browse files
committed
Added missing pipeline.stop() call in RTDEClient destructor
1 parent 590fd15 commit d53b772

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

include/ur_client_library/rtde/rtde_client.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ class RTDEClient
9393
*/
9494
RTDEClient(std::string robot_ip, comm::INotifier& notifier, const std::string& output_recipe_file,
9595
const std::string& input_recipe_file);
96-
~RTDEClient() = default;
96+
~RTDEClient();
9797
/*!
9898
* \brief Sets up RTDE communication with the robot. The handshake includes negotiation of the
9999
* used protocol version and setting of input and output recipes.

src/rtde/rtde_client.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,11 @@ RTDEClient::RTDEClient(std::string robot_ip, comm::INotifier& notifier, const st
4545
{
4646
}
4747

48+
RTDEClient::~RTDEClient()
49+
{
50+
pipeline_.stop();
51+
}
52+
4853
bool RTDEClient::init()
4954
{
5055
// A running pipeline is needed inside setup

0 commit comments

Comments
 (0)