moveit2
The MoveIt Motion Planning Framework for ROS 2.
|
This class contains the ros interfaces for CurrentStateMontior. More...
#include <current_state_monitor_middleware_handle.hpp>
Public Member Functions | |
CurrentStateMonitorMiddlewareHandle (const rclcpp::Node::SharedPtr &node) | |
Constructor. More... | |
rclcpp::Time | now () const override |
Get the current time. More... | |
void | createJointStateSubscription (const std::string &topic, JointStateUpdateCallback callback) override |
Creates a joint state subscription. More... | |
void | createStaticTfSubscription (std::function< void(const tf2_msgs::msg::TFMessage::ConstSharedPtr)> callback) override |
Creates a static transform message subscription. More... | |
void | createDynamicTfSubscription (std::function< void(const tf2_msgs::msg::TFMessage::ConstSharedPtr)> callback) override |
Creates a dynamic transform message subscription. More... | |
void | resetJointStateSubscription () override |
Reset the joint state subscription. More... | |
std::string | getJointStateTopicName () const override |
Get the joint state topic name. More... | |
bool | sleepFor (const std::chrono::nanoseconds &nanoseconds) const override |
Uses rclcpp::sleep_for to sleep. More... | |
bool | ok () const override |
Uses rclcpp::ok to check the context status. More... | |
std::string | getStaticTfTopicName () const override |
Get the static transform topic name. More... | |
std::string | getDynamicTfTopicName () const override |
Get the dynamic transform topic name. More... | |
void | resetTfSubscriptions () override |
Reset the static & dynamic transform subscriptions. More... | |
Public Member Functions inherited from planning_scene_monitor::CurrentStateMonitor::MiddlewareHandle | |
virtual | ~MiddlewareHandle ()=default |
Destroys the object. More... | |
virtual void | createStaticTfSubscription (TfCallback callback)=0 |
Creates a static transform message subscription. More... | |
virtual void | createDynamicTfSubscription (TfCallback callback)=0 |
Creates a dynamic transform message subscription. More... | |
Additional Inherited Members | |
Public Types inherited from planning_scene_monitor::CurrentStateMonitor::MiddlewareHandle | |
using | TfCallback = std::function< void(const tf2_msgs::msg::TFMessage::ConstSharedPtr)> |
This class contains the ros interfaces for CurrentStateMontior.
Definition at line 52 of file current_state_monitor_middleware_handle.hpp.
planning_scene_monitor::CurrentStateMonitorMiddlewareHandle::CurrentStateMonitorMiddlewareHandle | ( | const rclcpp::Node::SharedPtr & | node | ) |
Constructor.
[in] | node | The ros node |
Definition at line 55 of file current_state_monitor_middleware_handle.cpp.
|
override |
Creates a dynamic transform message subscription.
[in] | callback | The callback |
Definition at line 99 of file current_state_monitor_middleware_handle.cpp.
|
overridevirtual |
Creates a joint state subscription.
[in] | topic | The topic |
[in] | callback | The callback |
Implements planning_scene_monitor::CurrentStateMonitor::MiddlewareHandle.
Definition at line 65 of file current_state_monitor_middleware_handle.cpp.
|
override |
Creates a static transform message subscription.
[in] | callback | The callback |
Definition at line 105 of file current_state_monitor_middleware_handle.cpp.
|
overridevirtual |
Get the dynamic transform topic name.
Implements planning_scene_monitor::CurrentStateMonitor::MiddlewareHandle.
Definition at line 116 of file current_state_monitor_middleware_handle.cpp.
|
overridevirtual |
Get the joint state topic name.
Implements planning_scene_monitor::CurrentStateMonitor::MiddlewareHandle.
Definition at line 77 of file current_state_monitor_middleware_handle.cpp.
|
overridevirtual |
Get the static transform topic name.
Implements planning_scene_monitor::CurrentStateMonitor::MiddlewareHandle.
Definition at line 111 of file current_state_monitor_middleware_handle.cpp.
|
overridevirtual |
Get the current time.
Implements planning_scene_monitor::CurrentStateMonitor::MiddlewareHandle.
Definition at line 60 of file current_state_monitor_middleware_handle.cpp.
|
overridevirtual |
Uses rclcpp::ok to check the context status.
Implements planning_scene_monitor::CurrentStateMonitor::MiddlewareHandle.
Definition at line 94 of file current_state_monitor_middleware_handle.cpp.
|
overridevirtual |
Reset the joint state subscription.
Implements planning_scene_monitor::CurrentStateMonitor::MiddlewareHandle.
Definition at line 72 of file current_state_monitor_middleware_handle.cpp.
|
overridevirtual |
Reset the static & dynamic transform subscriptions.
Implements planning_scene_monitor::CurrentStateMonitor::MiddlewareHandle.
Definition at line 121 of file current_state_monitor_middleware_handle.cpp.
|
overridevirtual |
Uses rclcpp::sleep_for to sleep.
[in] | nanoseconds | The nanoseconds to sleep for |
Implements planning_scene_monitor::CurrentStateMonitor::MiddlewareHandle.
Definition at line 89 of file current_state_monitor_middleware_handle.cpp.