forked from minhnh/kinova_control_experiments
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add code to create KDL chain from URDF file
- Loading branch information
Showing
5 changed files
with
101 additions
and
12 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
#ifndef _CONSTANTS_HPP_ | ||
#define _CONSTANTS_HPP_ | ||
|
||
#include <vector> | ||
#include <string> | ||
|
||
namespace constants { | ||
|
||
namespace kinova { | ||
|
||
const std::vector<double> JOINT_ACCEL_LIMITS {5.19, 5.19, 5.19, 5.19, 9.99, 9.99, 9.99}; | ||
const std::vector<double> JOINT_TORQUE {39.0, 39.0, 39.0, 39.0, 9.0, 9.0, 9.0}; | ||
const std::vector<double> JOINT_STOP_TORQUE_LIMITS {39.0, 39.0, 39.0, 39.0, 13.0, 13.0, 13.0}; | ||
const std::vector<double> JOINT_INERTIA {0.5580, 0.5580, 0.5580, 0.5580, 0.1389, 0.1389, 0.1389}; | ||
|
||
const std::string URDF_PATH = "kinova_libs/extracted/urdf/kinova-gen3_urdf_V12.urdf"; | ||
|
||
const std::string FRAME_JOINT_0 = "base_link"; | ||
|
||
/** | ||
* With Bracelet_Link parameter, the last frame is at joint 7. | ||
* Mass and COM of the last (end-effector) link are included but not the real end-effector's frame. | ||
* Arm length: 1.12586m | ||
*/ | ||
const std::string FRAME_JOINT_6 = "Bracelet_Link"; | ||
|
||
/** | ||
* With EndEffector_Link parameter, last frame is at the real end-effector's frame. | ||
* However, in the urdf model, joint between Bracelet_Link and EndEffector_Link is fixed (not counted in KDL). | ||
* Vereshchagin does not support un-equal number of joints and segments | ||
* Arm length: 1.1873m | ||
*/ | ||
const std::string FRAME_END_EFFECTOR = "EndEffector_Link"; | ||
}; | ||
|
||
}; | ||
|
||
#endif |
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