42 const std::string
SCRIPT_FILE =
"resources/external_control.urscript";
43 const std::string
OUTPUT_RECIPE =
"examples/resources/rtde_output_recipe.txt";
44 const std::string
INPUT_RECIPE =
"examples/resources/rtde_input_recipe.txt";
54 std::cout <<
"\033[1;32mProgram running: " << std::boolalpha << program_running <<
"\033[0m\n" << std::endl;
57 int main(
int argc,
char* argv[])
59 std::unique_ptr<ToolCommSetup> tool_comm_setup;
66 double increment = 0.01;
73 std::unique_ptr<rtde_interface::DataPackage> data_pkg =
g_my_driver->getDataPackage();
80 std::string error_msg =
"Did not find 'actual_q' in data sent from robot. This should not happen!";
81 throw std::runtime_error(error_msg);
95 std::cout << data_pkg->toString() << std::endl;
99 std::cout <<
"Could not get fresh data package from robot" << std::endl;
This is the main class for interfacing the driver.
void handleRobotProgramState(bool program_running)
const std::string INPUT_RECIPE
const std::string OUTPUT_RECIPE
const std::string CALIBRATION_CHECKSUM
const std::string SCRIPT_FILE
int main(int argc, char *argv[])
Set when servoj control is active.
vector6d_t g_joint_positions
const std::string ROBOT_IP
std::unique_ptr< UrDriver > g_my_driver
std::array< double, 6 > vector6d_t