Skip to content
Merged
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
10 changes: 10 additions & 0 deletions include/ur_client_library/rtde/rtde_client.h
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,16 @@ class RTDEClient
*/
RTDEWriter& getWriter();

/*!
* \brief Getter for the RTDE output recipe.
*
* \returns The output recipe
*/
std::vector<std::string> getOutputRecipe()
{
return output_recipe_;
}

private:
comm::URStream<RTDEPackage> stream_;
std::vector<std::string> output_recipe_;
Expand Down
7 changes: 7 additions & 0 deletions include/ur_client_library/ur/ur_driver.h
Original file line number Diff line number Diff line change
Expand Up @@ -222,6 +222,13 @@ class UrDriver
return robot_version_;
}

/*!
* \brief Getter for the RTDE output recipe used in the RTDE client.
*
* \returns The used RTDE output recipe
*/
std::vector<std::string> getRTDEOutputRecipe();

private:
std::string readScriptFile(const std::string& filename);
std::string readKeepalive();
Expand Down
5 changes: 5 additions & 0 deletions src/ur/ur_driver.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -321,4 +321,9 @@ bool UrDriver::sendRobotProgram()
return false;
}
}

std::vector<std::string> UrDriver::getRTDEOutputRecipe()
{
return rtde_client_->getOutputRecipe();
}
} // namespace urcl