Skip to content

Commit

Permalink
Working coutn to 10
Browse files Browse the repository at this point in the history
  • Loading branch information
jbrhm committed Mar 17, 2024
1 parent fe74915 commit a754273
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/teleoperation/lander_align/lander_align.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ namespace mrover {
mTwistPub = mNh.advertise<geometry_msgs::Twist>("/cmd_vel", 1);
mDebugPCPub = mNh.advertise<sensor_msgs::PointCloud2>("/lander_align/debugPC", 1);

mActionServer.emplace(mNh, "/LanderAlignAction", [&](LanderAlignGoalConstPtr const& goal) { ActionServerCallBack(goal); }, false);

mActionServer.emplace(mNh, "LanderAlignAction", [&](LanderAlignGoalConstPtr const& goal) { ActionServerCallBack(goal); }, true);
//TF Create the Reference Frames
mNh.param<std::string>("camera_frame", mCameraFrameId, "zed_left_camera_frame");
mNh.param<std::string>("world_frame", mMapFrameId, "map");
Expand All @@ -46,12 +46,12 @@ namespace mrover {
}

auto LanderAlignNodelet::ActionServerCallBack(LanderAlignGoalConstPtr const& actionRequest) -> void {
LanderAlignFeedbackPtr feedback;
LanderAlignFeedback feedback;
LanderAlignResult result;
result.num=10;
ros::Rate r(1);
for(int i = 0; i < static_cast<int>(actionRequest->num); i++){
feedback->count_ten = i;
feedback.count_ten = i;
mActionServer->publishFeedback(feedback);
r.sleep();
}
Expand Down

0 comments on commit a754273

Please sign in to comment.