diff --git a/src/ur/ur_driver.cpp b/src/ur/ur_driver.cpp index 52fe45ed4..224fca68e 100644 --- a/src/ur/ur_driver.cpp +++ b/src/ur/ur_driver.cpp @@ -148,6 +148,9 @@ void UrDriver::init(const UrDriverConfiguration& config) } prog.replace(prog.find(BEGIN_REPLACE), BEGIN_REPLACE.length(), begin_replace.str()); + trajectory_interface_.reset(new control::TrajectoryPointInterface(config.trajectory_port)); + script_command_interface_.reset(new control::ScriptCommandInterface(config.script_command_port)); + if (in_headless_mode_) { full_robot_program_ = "stop program\n"; @@ -167,9 +170,6 @@ void UrDriver::init(const UrDriverConfiguration& config) URCL_LOG_DEBUG("Created script sender"); } - trajectory_interface_.reset(new control::TrajectoryPointInterface(config.trajectory_port)); - script_command_interface_.reset(new control::ScriptCommandInterface(config.script_command_port)); - if (!std::empty(config.calibration_checksum)) { URCL_LOG_WARN("DEPRECATION NOTICE: Passing the calibration_checksum to the UrDriver's constructor has been "