Skip to content

Commit 9d55b0e

Browse files
committed
Added a Getter for the RTDE output recipe to be used in the hardware interface
1 parent a229a72 commit 9d55b0e

File tree

3 files changed

+22
-0
lines changed

3 files changed

+22
-0
lines changed

ur_robot_driver/include/ur_robot_driver/rtde/rtde_client.h

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,16 @@ class RTDEClient
125125
*/
126126
RTDEWriter& getWriter();
127127

128+
/*!
129+
* \brief Getter for the RTDE output recipe.
130+
*
131+
* \returns The output recipe
132+
*/
133+
std::vector<std::string> getOutputRecipe()
134+
{
135+
return output_recipe_;
136+
}
137+
128138
private:
129139
comm::URStream<PackageHeader> stream_;
130140
std::vector<std::string> output_recipe_;

ur_robot_driver/include/ur_robot_driver/ur/ur_driver.h

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -173,6 +173,13 @@ class UrDriver
173173
*/
174174
bool sendRobotProgram();
175175

176+
/*!
177+
* \brief Getter for the RTDE output recipe used in the RTDE client.
178+
*
179+
* \returns The used RTDE output recipe
180+
*/
181+
std::vector<std::string> getRTDEOutputRecipe();
182+
176183
private:
177184
std::string readScriptFile(const std::string& filename);
178185
std::string readKeepalive();

ur_robot_driver/src/ur/ur_driver.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -291,4 +291,9 @@ bool UrDriver::sendRobotProgram()
291291
return false;
292292
}
293293
}
294+
295+
std::vector<std::string> UrDriver::getRTDEOutputRecipe()
296+
{
297+
return rtde_client_->getOutputRecipe();
298+
}
294299
} // namespace ur_driver

0 commit comments

Comments
 (0)