forked from pantor/frankx
-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Tim Schneider
committed
Feb 2, 2024
1 parent
1bc2d2d
commit 07beef3
Showing
5 changed files
with
56 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
#pragma once | ||
|
||
#include <atomic> | ||
#include <optional> | ||
#include <ruckig/ruckig.hpp> | ||
|
||
#include "franky/robot_pose.hpp" | ||
#include "franky/motion/joint_waypoint_motion.hpp" | ||
#include "franky/motion/reference_type.hpp" | ||
|
||
namespace franky { | ||
|
||
class JointMotion : public JointWaypointMotion { | ||
public: | ||
explicit JointMotion( | ||
const Vector7d &target, | ||
ReferenceType reference_type, | ||
RelativeDynamicsFactor relative_dynamics_factor, | ||
bool return_when_finished); | ||
}; | ||
|
||
} // namespace franky |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
#include "franky/motion/joint_motion.hpp" | ||
|
||
#include "franky/motion/joint_waypoint_motion.hpp" | ||
|
||
namespace franky { | ||
|
||
JointMotion::JointMotion( | ||
const Vector7d &target, | ||
ReferenceType reference_type, | ||
RelativeDynamicsFactor relative_dynamics_factor, | ||
bool return_when_finished) | ||
: JointWaypointMotion( | ||
{ | ||
{ | ||
.target = target, | ||
.reference_type = reference_type, | ||
.relative_dynamics_factor = relative_dynamics_factor | ||
} | ||
}, { | ||
Params{ | ||
.return_when_finished = return_when_finished | ||
} | ||
}) {} | ||
|
||
} // namespace franky |