mirror of
https://gitlab.com/obbart/universal_robots_ros_driver.git
synced 2026-04-12 19:10:47 +02:00
removed no longer used and supported plain driver startup
This commit is contained in:
@@ -1,42 +0,0 @@
|
||||
// this is for emacs file handling -*- mode: c++; indent-tabs-mode: nil -*-
|
||||
|
||||
// -- BEGIN LICENSE BLOCK ----------------------------------------------
|
||||
// -- END LICENSE BLOCK ------------------------------------------------
|
||||
|
||||
//----------------------------------------------------------------------
|
||||
/*!\file
|
||||
*
|
||||
* \author Felix Mauch mauch@fzi.de
|
||||
* \date 2019-04-11
|
||||
*
|
||||
*/
|
||||
//----------------------------------------------------------------------
|
||||
|
||||
#include <ur_rtde_driver/ur/ur_driver.h>
|
||||
|
||||
using namespace ur_driver;
|
||||
|
||||
int main(int argc, char* argv[])
|
||||
{
|
||||
std::string robot_ip = "192.168.56.101";
|
||||
std::string script_filename = "urprog.urscript";
|
||||
std::string recipe_filename = "rtde_recipe.txt";
|
||||
|
||||
if (argc > 2)
|
||||
{
|
||||
robot_ip = argv[1];
|
||||
}
|
||||
|
||||
UrDriver driver(robot_ip, script_filename, recipe_filename);
|
||||
|
||||
while (true)
|
||||
{
|
||||
sleep(1);
|
||||
std::unique_ptr<rtde_interface::DataPackage> data_pkg = driver.getDataPackage();
|
||||
if (data_pkg)
|
||||
{
|
||||
data_pkg->toString();
|
||||
}
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
Reference in New Issue
Block a user