EasyFleet
A simple-by-default framework for multi-robot, multi-capability fleets built on ROS 2
Toggle main menu visibility
Loading...
Searching...
No Matches
manipulation_fake_capability.hpp
1
// Copyright 2026 Intelligent Robotics Lab
2
//
3
// This file is part of the project EasyFleet
4
// Licensed under the Apache License, Version 2.0 (the "License");
5
// you may not use this file except in compliance with the License.
6
// You may obtain a copy of the License at
7
//
8
// http://www.apache.org/licenses/LICENSE-2.0
9
//
10
// Unless required by applicable law or agreed to in writing, software
11
// distributed under the License is distributed on an "AS IS" BASIS,
12
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
// See the License for the specific language governing permissions and
14
// limitations under the License.
15
16
#ifndef EASYFLEET_EASYNAV_COLLABORATION_DEPLOYMENT__MANIPULATION_FAKE_CAPABILITY_HPP_
17
#define EASYFLEET_EASYNAV_COLLABORATION_DEPLOYMENT__MANIPULATION_FAKE_CAPABILITY_HPP_
18
19
#include <string>
20
21
#include "easyfleet_interfaces/action/manipulation.hpp"
22
#include "rclcpp/rclcpp.hpp"
23
#include "rclcpp_action/rclcpp_action.hpp"
24
#include "rclcpp_lifecycle/lifecycle_node.hpp"
25
26
#include "easyfleet_core/capability.hpp"
27
#include "easyfleet_core/manipulation_action_server_base.hpp"
28
29
namespace
easyfleet_easynav_collaboration_deployment
30
{
31
33
47
class
ManipulationFakeActionServer
:
public
easyfleet_core::ManipulationActionServerBase
48
{
49
public
:
53
ManipulationFakeActionServer
(
54
rclcpp_lifecycle::LifecycleNode & node,
55
const
std::string & action_name);
56
57
protected
:
62
rclcpp_action::GoalResponse
on_goal_received
(
63
const
rclcpp_action::GoalUUID & uuid,
64
std::shared_ptr<const Goal> goal)
override
;
65
70
void
on_execute
(
const
GoalHandleSharedPtr
goal_handle)
override
;
71
72
private
:
73
double
mock_execution_duration_s_;
74
double
mock_feedback_period_s_;
75
};
76
80
class
ManipulationFakeCapability
81
:
public
easyfleet_core::Capability
<ManipulationFakeActionServer>
82
{
83
public
:
86
explicit
ManipulationFakeCapability
(
const
rclcpp::NodeOptions & options = rclcpp::NodeOptions());
87
};
88
89
}
// namespace easyfleet_easynav_collaboration_deployment
90
91
#endif
// EASYFLEET_EASYNAV_COLLABORATION_DEPLOYMENT__MANIPULATION_FAKE_CAPABILITY_HPP_
easyfleet_core::ActionServerBase< easyfleet_interfaces::action::Manipulation >::GoalHandleSharedPtr
std::shared_ptr< GoalHandle > GoalHandleSharedPtr
Definition
action_server_base.hpp:79
easyfleet_core::Capability
Lifecycle node that advertises a single action as a "capability".
Definition
capability.hpp:65
easyfleet_core::ManipulationActionServerBase
Fixes ActionServerBase's action type to easyfleet_interfaces/Manipulation, so a concrete manipulation...
Definition
manipulation_action_server_base.hpp:32
easyfleet_easynav_collaboration_deployment::ManipulationFakeActionServer::ManipulationFakeActionServer
ManipulationFakeActionServer(rclcpp_lifecycle::LifecycleNode &node, const std::string &action_name)
Constructs the action server.
Definition
manipulation_fake_capability.cpp:44
easyfleet_easynav_collaboration_deployment::ManipulationFakeActionServer::on_execute
void on_execute(const GoalHandleSharedPtr goal_handle) override
Simulates trajectory execution progress over mock_execution_duration_s_, publishing feedback every mo...
Definition
manipulation_fake_capability.cpp:65
easyfleet_easynav_collaboration_deployment::ManipulationFakeActionServer::on_goal_received
rclcpp_action::GoalResponse on_goal_received(const rclcpp_action::GoalUUID &uuid, std::shared_ptr< const Goal > goal) override
Always accepts (this mock never rejects a goal).
Definition
manipulation_fake_capability.cpp:55
easyfleet_easynav_collaboration_deployment::ManipulationFakeCapability::ManipulationFakeCapability
ManipulationFakeCapability(const rclcpp::NodeOptions &options=rclcpp::NodeOptions())
Constructs the capability node.
Definition
manipulation_fake_capability.cpp:110
easyfleet_example_deployments
easyfleet_easynav_collaboration_deployment
include
easyfleet_easynav_collaboration_deployment
manipulation_fake_capability.hpp
Generated by
1.17.0