1
0
mirror of https://gitlab.com/obbart/universal_robots_ros_driver.git synced 2026-04-10 10:00:48 +02:00

Split servoj into several functions for reuseability

This commit is contained in:
Thomas Timm Andersen
2015-09-24 16:51:18 +02:00
parent 402f5c0170
commit ba96d0f098
2 changed files with 42 additions and 45 deletions

View File

@@ -37,6 +37,7 @@ private:
const int MULT_TIME_ = 1000000;
const unsigned int REVERSE_PORT_;
int incoming_sockfd_;
int new_sockfd_;
public:
UrRealtimeCommunication* rt_interface_;
UrCommunication* sec_interface_;
@@ -58,9 +59,13 @@ public:
void doTraj(std::vector<double> inp_timestamps,
std::vector<std::vector<double> > inp_positions,
std::vector<std::vector<double> > inp_velocities);
void servoj(std::vector<double> positions, double time, int keepalive);
void stopTraj();
void uploadProg();
void openServo();
void closeServo();
std::vector<double> interp_cubic(double t, double T,
std::vector<double> p0_pos, std::vector<double> p1_pos,