Skip to content

Add computePlanThroughPoses function #16

@elsayedelsheikh

Description

@elsayedelsheikh

Plan through a list of poses using computePlanThroughPoses function

void PlannerServer::computePlanThroughPoses(
const std::shared_ptr<GoalHandle<ActionThroughPoses>> goal_handle)
{
RCLCPP_INFO(this->get_logger(), "Executing ComputePlanThroughPoses");
const auto goal = goal_handle->get_goal();
auto result = std::make_shared<ActionThroughPoses::Result>();
// Check if we need to initialize
if (!initialized_) {
initialize();
}
// TODO(ElSayed): Implement your planning logic here
// Example:
// - Use move_group_interface_ to plan through goal->target_poses
// - Fill result->trajectory
// For now, just abort
goal_handle->abort(result);
}

given
geometry_msgs/PoseStamped[] goals

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions