Skip to content

Commit b16d0c3

Browse files
committed
Add interface function to receive configured RTDE output recipe from driver
1 parent 4a3667f commit b16d0c3

File tree

3 files changed

+22
-0
lines changed

3 files changed

+22
-0
lines changed

include/ur_client_library/rtde/rtde_client.h

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -151,6 +151,16 @@ class RTDEClient
151151
*/
152152
RTDEWriter& getWriter();
153153

154+
/*!
155+
* \brief Getter for the RTDE output recipe.
156+
*
157+
* \returns The output recipe
158+
*/
159+
std::vector<std::string> getOutputRecipe()
160+
{
161+
return output_recipe_;
162+
}
163+
154164
private:
155165
comm::URStream<RTDEPackage> stream_;
156166
std::vector<std::string> output_recipe_;

include/ur_client_library/ur/ur_driver.h

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -222,6 +222,13 @@ class UrDriver
222222
return robot_version_;
223223
}
224224

225+
/*!
226+
* \brief Getter for the RTDE output recipe used in the RTDE client.
227+
*
228+
* \returns The used RTDE output recipe
229+
*/
230+
std::vector<std::string> getRTDEOutputRecipe();
231+
225232
private:
226233
std::string readScriptFile(const std::string& filename);
227234
std::string readKeepalive();

src/ur/ur_driver.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -321,4 +321,9 @@ bool UrDriver::sendRobotProgram()
321321
return false;
322322
}
323323
}
324+
325+
std::vector<std::string> UrDriver::getRTDEOutputRecipe()
326+
{
327+
return rtde_client_->getOutputRecipe();
328+
}
324329
} // namespace urcl

0 commit comments

Comments
 (0)