File tree Expand file tree Collapse file tree 2 files changed +7
-1
lines changed
include/ur_client_library/ur Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -435,7 +435,7 @@ class UrDriver
435435 init (config);
436436 }
437437
438- virtual ~UrDriver () = default ;
438+ ~UrDriver ();
439439
440440 /* !
441441 * \brief Access function to receive the latest data package sent from the robot through RTDE
Original file line number Diff line number Diff line change @@ -52,6 +52,12 @@ static const std::string SCRIPT_COMMAND_PORT_REPLACE("{{SCRIPT_COMMAND_SERVER_PO
5252static const std::string FORCE_MODE_SET_DAMPING_REPLACE (" {{FORCE_MODE_SET_DAMPING_REPLACE}}" );
5353static const std::string FORCE_MODE_SET_GAIN_SCALING_REPLACE (" {{FORCE_MODE_SET_GAIN_SCALING_REPLACE}}" );
5454
55+ UrDriver::~UrDriver ()
56+ {
57+ // This will return false if the external control script is not running.
58+ stopControl ();
59+ }
60+
5561void UrDriver::init (const UrDriverConfiguration& config)
5662{
5763 robot_ip_ = config.robot_ip ;
You can’t perform that action at this time.
0 commit comments