Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions include/ur_client_library/ur/instruction_executor.h
Original file line number Diff line number Diff line change
Expand Up @@ -187,6 +187,8 @@ class InstructionExecutor
return trajectory_running_;
}

void registerTrajDoneCallback();

private:
void trajDoneCallback(const urcl::control::TrajectoryResult& result);
void trajDisconnectCallback(const int filedescriptor);
Expand Down
5 changes: 5 additions & 0 deletions src/ur/instruction_executor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,11 @@
trajectory_result_ = result;
trajectory_running_ = false;
}
void urcl::InstructionExecutor::registerTrajDoneCallback()

Check warning on line 44 in src/ur/instruction_executor.cpp

View check run for this annotation

Codecov / codecov/patch

src/ur/instruction_executor.cpp#L44

Added line #L44 was not covered by tests
{
driver_->registerTrajectoryDoneCallback(
std::bind(&InstructionExecutor::trajDoneCallback, this, std::placeholders::_1));

Check warning on line 47 in src/ur/instruction_executor.cpp

View check run for this annotation

Codecov / codecov/patch

src/ur/instruction_executor.cpp#L46-L47

Added lines #L46 - L47 were not covered by tests
}
void urcl::InstructionExecutor::trajDisconnectCallback(const int filedescriptor)
{
URCL_LOG_INFO("Trajectory disconnect");
Expand Down
Loading