Skip to content
Snippets Groups Projects
Commit efd69d9a authored by Simon Gabl's avatar Simon Gabl
Browse files

Set empty elbow when only Cartesian velocities are commanded.

parent 5cd45e5e
No related branches found
No related tags found
No related merge requests found
......@@ -32,7 +32,6 @@ class FrankaCartesianPoseHandle : public FrankaStateHandle {
* Sets the given command.
*
* @param[in] command Command to set.
* @param[in] elbow Elbow to set. Default none.
*/
void setCommand(const std::array<double, 16>& command) noexcept {
*command_ = command;
......@@ -92,7 +91,10 @@ class FrankaCartesianVelocityHandle : public FrankaStateHandle {
*
* @param[in] command Command to set.
*/
void setCommand(std::array<double, 6>& command) noexcept { *command_ = command; }
void setCommand(std::array<double, 6>& command) noexcept {
*command_ = command;
*elbow_ = {};
}
/**
* Sets the given command.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment