diff --git a/include/ur_client_library/rtde/rtde_client.h b/include/ur_client_library/rtde/rtde_client.h index bfbbc5c9c..528b17549 100644 --- a/include/ur_client_library/rtde/rtde_client.h +++ b/include/ur_client_library/rtde/rtde_client.h @@ -151,6 +151,16 @@ class RTDEClient */ RTDEWriter& getWriter(); + /*! + * \brief Getter for the RTDE output recipe. + * + * \returns The output recipe + */ + std::vector getOutputRecipe() + { + return output_recipe_; + } + private: comm::URStream stream_; std::vector output_recipe_; diff --git a/include/ur_client_library/ur/ur_driver.h b/include/ur_client_library/ur/ur_driver.h index da72a2d41..e8322064d 100644 --- a/include/ur_client_library/ur/ur_driver.h +++ b/include/ur_client_library/ur/ur_driver.h @@ -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 getRTDEOutputRecipe(); + private: std::string readScriptFile(const std::string& filename); std::string readKeepalive(); diff --git a/src/ur/ur_driver.cpp b/src/ur/ur_driver.cpp index 8ce7ee78c..5dd5919fd 100644 --- a/src/ur/ur_driver.cpp +++ b/src/ur/ur_driver.cpp @@ -321,4 +321,9 @@ bool UrDriver::sendRobotProgram() return false; } } + +std::vector UrDriver::getRTDEOutputRecipe() +{ + return rtde_client_->getOutputRecipe(); +} } // namespace urcl