25#include <moveit/move_group_interface/move_group_interface.hpp>
26#include <moveit/planning_scene_interface/planning_scene_interface.hpp>
28#include <geometry_msgs/msg/transform.hpp>
29#include <geometry_msgs/msg/vector3.hpp>
30#include <tf2_geometry_msgs/tf2_geometry_msgs.hpp>
34template <
typename TSource,
typename TOrthogonal>
36:
sc::event<EvMoveGroupMotionExecutionSucceeded<TSource, TOrthogonal>>
40template <
typename TSource,
typename TOrthogonal>
42:
sc::event<EvMoveGroupMotionExecutionFailed<TSource, TOrthogonal>>
53 const moveit::planning_interface::MoveGroupInterface::Options & options)
61 std::make_shared<moveit::planning_interface::MoveGroupInterface>(
getNode(),
options_);
64 RCLCPP_INFO(
getLogger(),
"[CpMoveGroupInterface] MoveGroupInterface initialized");
67 template <
typename TOrthogonal,
typename TSourceObject>
85 RCLCPP_INFO(
getLogger(),
"[CpMoveGroupInterface] Post Motion Success Event");
91 RCLCPP_INFO(
getLogger(),
"[CpMoveGroupInterface] Post Motion Failure Event");
95 template <
typename TCallback,
typename T>
101 template <
typename TCallback,
typename T>
114 moveit::planning_interface::MoveGroupInterface::Options
options_;
void postEventMotionExecutionFailed()
std::function< void()> postEventMotionExecutionFailed_
smacc2::SmaccSignalConnection onMotionExecutionSucceeded(TCallback callback, T *object)
smacc2::SmaccSignal< void()> onSucceeded_
std::shared_ptr< moveit::planning_interface::MoveGroupInterface > moveGroupClientInterface
void onStateOrthogonalAllocation()
std::function< void()> postEventMotionExecutionSucceeded_
moveit::planning_interface::MoveGroupInterface::Options options_
smacc2::SmaccSignal< void()> onFailed_
void postEventMotionExecutionSucceeded()
void onInitialize() override
std::shared_ptr< moveit::planning_interface::PlanningSceneInterface > planningSceneInterface
smacc2::SmaccSignalConnection onMotionExecutionFailed(TCallback callback, T *object)
CpMoveGroupInterface(const moveit::planning_interface::MoveGroupInterface::Options &options)
ISmaccStateMachine * getStateMachine()
rclcpp::Logger getLogger() const
rclcpp::Node::SharedPtr getNode()
smacc2::SmaccSignalConnection createSignalConnection(TSmaccSignal &signal, TMemberFunctionPrototype callback, TSmaccObjectType *object)
boost::signals2::connection SmaccSignalConnection