Skip to content

Commit 4ae9219

Browse files
author
Pablo David Aranda Rodriguez
committed
Added additional constructors to ExampleRobotWrapper
1 parent 58a35fe commit 4ae9219

File tree

1 file changed

+46
-0
lines changed

1 file changed

+46
-0
lines changed

include/ur_client_library/example_robot_wrapper.h

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,52 @@ class ExampleRobotWrapper
7373
* \param script_file URScript file to send to the robot. That should be script code
7474
* communicating to the driver's reverse interface and trajectory interface.
7575
*/
76+
[[deprecated("Deprecateing constructor for ExampleRobotWrapper. Please use constructor with both recipe files and "
77+
"vectors")]]
78+
ExampleRobotWrapper(const std::string& robot_ip, const std::string& output_recipe_file,
79+
const std::string& input_recipe_file, const bool headless_mode = true,
80+
const std::string& autostart_program = "", const std::string& script_file = SCRIPT_FILE);
81+
/*!
82+
* \brief Construct a new Example Robot Wrapper object
83+
*
84+
* This will connect to a robot and initialize it. In headless mode the program will be running
85+
* instantly, in teach pendant mode the from \p autostart_program will be started.
86+
*
87+
* Note: RTDE communication has to be started separately.
88+
*
89+
* \param robot_ip IP address of the robot to connect to
90+
* \param output_recipe Output recipe vector for RTDE communication
91+
* \param input_recipe Input recipe vector for RTDE communication
92+
* \param headless_mode Should the driver be started in headless mode or not?
93+
* \param autostart_program Program to start automatically after initialization when not in
94+
* headless mode. This flag is ignored in headless mode.
95+
* \param script_file URScript file to send to the robot. That should be script code
96+
* communicating to the driver's reverse interface and trajectory interface.
97+
*/
98+
[[deprecated("Deprecateing constructor for ExampleRobotWrapper. Please use constructor with both recipe files and "
99+
"vectors")]]
100+
ExampleRobotWrapper(const std::string& robot_ip, const std::vector<std::string> output_recipe,
101+
const std::vector<std::string> input_recipe, const bool headless_mode = true,
102+
const std::string& autostart_program = "", const std::string& script_file = SCRIPT_FILE);
103+
/*!
104+
* \brief Construct a new Example Robot Wrapper object
105+
*
106+
* This will connect to a robot and initialize it. In headless mode the program will be running
107+
* instantly, in teach pendant mode the from \p autostart_program will be started.
108+
*
109+
* Note: RTDE communication has to be started separately.
110+
*
111+
* \param robot_ip IP address of the robot to connect to
112+
* \param output_recipe_file Output recipe file for RTDE communication
113+
* \param input_recipe_file Input recipe file for RTDE communication
114+
* \param output_recipe Output recipe vector for RTDE communication
115+
* \param input_recipe Input recipe vector for RTDE communication
116+
* \param headless_mode Should the driver be started in headless mode or not?
117+
* \param autostart_program Program to start automatically after initialization when not in
118+
* headless mode. This flag is ignored in headless mode.
119+
* \param script_file URScript file to send to the robot. That should be script code
120+
* communicating to the driver's reverse interface and trajectory interface.
121+
*/
76122
ExampleRobotWrapper(const std::string& robot_ip, const std::string& output_recipe_file,
77123
const std::string& input_recipe_file, const std::vector<std::string> output_recipe,
78124
const std::vector<std::string> input_recipe, const bool headless_mode = true,

0 commit comments

Comments
 (0)