Skip to content

Commit 5877993

Browse files
committed
Remove base position magic value
Signed-off-by: Kacper Dąbrowski <[email protected]>
1 parent 206c68c commit 5877993

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

ros2_ws/src/robotic_manipulation/src/robotic_manipulation.cpp

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,10 @@
1919
#include "robotic_manipulation/arm_controller.h"
2020
#include "robotic_manipulation/rai_manipulation_interface_node.h"
2121

22+
constexpr double EndEffectorBaseX = 0.3;
23+
constexpr double EndEffectorBaseY = 0.0;
24+
constexpr double EndEffectorBaseZ = 0.35;
25+
2226
int main(int argc, char *argv[]) {
2327
// Initialize ROS and create the Node
2428
rclcpp::init(argc, argv);
@@ -27,7 +31,7 @@ int main(int argc, char *argv[]) {
2731
armController->Initialize();
2832

2933
armController->MoveThroughWaypoints(
30-
{armController->CalculatePose(0.3, 0.0, 0.35)});
34+
{armController->CalculatePose(EndEffectorBaseX, EndEffectorBaseY, EndEffectorBaseZ)});
3135

3236
std::vector<double> startingPose;
3337
startingPose = armController->CaptureJointValues();

0 commit comments

Comments
 (0)