Skip to content

Commit

Permalink
Branch put on hold for now
Browse files Browse the repository at this point in the history
  • Loading branch information
URJala committed Apr 11, 2024
1 parent d21a402 commit b31ecd5
Show file tree
Hide file tree
Showing 3 changed files with 65 additions and 0 deletions.
16 changes: 16 additions & 0 deletions include/ur_client_library/waypoints/move_j.hpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
#pragma once

#include "waypoint.hpp"
#include "../ur/ur_driver.h"

class move_j : private waypoint
{
move_j(std::vector<double&> positions, double time, bool tool_contact, bool force_mode)
: waypoint(positions, time, tool_contact, force_mode)
{
}

void send_point() override
{
}
};
14 changes: 14 additions & 0 deletions include/ur_client_library/waypoints/trajectory.hpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
#pragma once

#include "waypoint.hpp"
#include <memory>

class trajectory
{
private:
std::vector<std::unique_ptr<waypoint>> trajectory;

public:
void add(std::unique_ptr<waypoint> point);
void execute();
};
35 changes: 35 additions & 0 deletions include/ur_client_library/waypoints/waypoint.hpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
#pragma once

#include <vector>
#include <memory>
#include "../ur/ur_driver.h"

class waypoint
{
public:
std::vector<double&> positions_;
double waypoint_time_;
bool tool_contact_;
bool force_mode_;
std::unique_ptr<urcl::control::TrajectoryPointInterface> interface_;
waypoint(std::unique_ptr<urcl::control::TrajectoryPointInterface> ur_driver, std::vector<double&> positions,
double time, bool tool_contact = false, bool force_mode = false)
{
positions_ = positions;
waypoint_time_ = time;
tool_contact_ = tool_contact;
force_mode_ = force_mode;
interface_.(ur_driver);
}
void set_tool_contact(bool enable)
{
tool_contact_ = enable;
}

void set_force_mode(bool enable)
{
force_mode_ = enable;
}

virtual void send_point();
};

0 comments on commit b31ecd5

Please sign in to comment.