Skip to content

Commit 8b7bccd

Browse files
committed
Added a Getter for the RTDE output recipe to be used in the hardware interface
1 parent a926789 commit 8b7bccd

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
@@ -192,6 +192,13 @@ class UrDriver
192192
return robot_version_;
193193
}
194194

195+
/*!
196+
* \brief Getter for the RTDE output recipe used in the RTDE client.
197+
*
198+
* \returns The used RTDE output recipe
199+
*/
200+
std::vector<std::string> getRTDEOutputRecipe();
201+
195202
private:
196203
std::string readScriptFile(const std::string& filename);
197204
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
@@ -295,4 +295,9 @@ bool UrDriver::sendRobotProgram()
295295
return false;
296296
}
297297
}
298+
299+
std::vector<std::string> UrDriver::getRTDEOutputRecipe()
300+
{
301+
return rtde_client_->getOutputRecipe();
302+
}
298303
} // namespace ur_driver

0 commit comments

Comments
 (0)