Skip to content
Snippets Groups Projects
Commit 93eaa7a6 authored by Fabian Reister's avatar Fabian Reister
Browse files

Merge branch 'feature/moving-controller-interfaces-from-armar6-rt-to-RobotAPI' into 'master'

moving controller interfaces from armar6::rt to RobotAPI

See merge request ArmarX/RobotAPI!269
parents 4ba0cc43 3a8a8e36
No related branches found
No related tags found
No related merge requests found
......@@ -81,6 +81,10 @@ set(SLICE_FILES
units/RobotUnit/NJointTaskSpaceDMPController.ice
units/RobotUnit/NJointBimanualForceMPController.ice
units/RobotUnit/NjointZeroTorqueController.ice
units/RobotUnit/NJointCurrentController.ice
units/RobotUnit/NJointActiveImpedanceController.ice
units/RobotUnit/DSControllerBase.ice
units/RobotUnit/TaskSpaceActiveImpedanceControl.ice
......
/*
* This file is part of ArmarX.
*
* ArmarX is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as
* published by the Free Software Foundation.
*
* ArmarX is distributed in the hope that it will be useful, but
* WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
* @package RobotAPI::NJointControllerInterface
* @author Mirko Waechter ( mirko dot waechter at kit dot edu )
* @date 2017
* @copyright http://www.gnu.org/licenses/gpl-2.0.txt
* GNU General Public License
*/
#pragma once
#include <RobotAPI/interface/units/RobotUnit/NJointController.ice>
#include <RobotAPI/interface/core/Trajectory.ice>
module armarx
{
module RobotUnitControllerNames
{
const string NJointActiveImpedanceController = "NJointActiveImpedanceController";
};
class NJointActiveImpedanceControllerConfig extends NJointControllerConfig
{
float position = 0;
float kp = 0;
float kd = 0;
string deviceName;
};
interface NJointActiveImpedanceControllerInterface extends NJointControllerInterface
{
void setControllerTarget(float position, float kp, float kd);
};
};
/*
* This file is part of ArmarX.
*
* ArmarX is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as
* published by the Free Software Foundation.
*
* ArmarX is distributed in the hope that it will be useful, but
* WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
* @package RobotAPI::NJointControllerInterface
* @author Mirko Waechter ( mirko dot waechter at kit dot edu )
* @date 2017
* @copyright http://www.gnu.org/licenses/gpl-2.0.txt
* GNU General Public License
*/
#pragma once
#include <RobotAPI/interface/units/RobotUnit/NJointController.ice>
#include <RobotAPI/interface/core/Trajectory.ice>
module armarx
{
module RobotUnitControllerNames
{
const string NJointCurrentController = "NJointCurrentController";
};
class NJointCurrentControllerConfig extends NJointControllerConfig
{
float current = 0;
string deviceName;
};
interface NJointCurrentControllerInterface extends NJointControllerInterface
{
void setControllerTarget(float current);
};
};
/*
* This file is part of ArmarX.
*
* ArmarX is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as
* published by the Free Software Foundation.
*
* ArmarX is distributed in the hope that it will be useful, but
* WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
* @package RobotAPI::NJointControllerInterface
* @author Mirko Waechter ( mirko dot waechter at kit dot edu )
* @date 2017
* @copyright http://www.gnu.org/licenses/gpl-2.0.txt
* GNU General Public License
*/
#pragma once
#include <RobotAPI/interface/units/RobotUnit/NJointController.ice>
module armarx
{
module RobotUnitControllerNames
{
const string NJointZeroTorqueController = "NJointZeroTorqueController";
};
class NJointZeroTorqueControllerConfig extends NJointControllerConfig
{
Ice::StringSeq jointNames;
float maxTorque = 10.0f;
};
interface NJointZeroTorqueControllerInterface extends NJointControllerInterface
{
void setControllerTarget(Ice::FloatSeq targetTorques);
};
};
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment