21#include <tf2/impl/utils.h>
24#include <tf2_geometry_msgs/tf2_geometry_msgs.hpp>
26using namespace std::chrono_literals;
27using namespace moveit::planning_interface;
36ClMoveit2z::ClMoveit2z(std::string groupName) : options_(groupName) {}
38ClMoveit2z::~ClMoveit2z() {}
40void ClMoveit2z::onInitialize()
42 moveGroupClientInterface = std::make_shared<MoveGroupInterface>(getNode(), options_);
43 planningSceneInterface = std::make_shared<PlanningSceneInterface>(options_.move_group_namespace_);
46void ClMoveit2z::postEventMotionExecutionSucceded()
48 RCLCPP_INFO(getLogger(),
"[ClMoveit2z] Post Motion Success Event");
49 postEventMotionExecutionSucceded_();
52void ClMoveit2z::postEventMotionExecutionFailed()
54 RCLCPP_INFO(getLogger(),
"[ClMoveit2z] Post Motion Failure Event");
55 postEventMotionExecutionFailed_();
58const moveit::planning_interface::MoveGroupInterface::Options & ClMoveit2z::getOptions()
const
ClMoveit2z(std::string groupName)