moveit2
The MoveIt Motion Planning Framework for ROS 2.
Loading...
Searching...
No Matches
Public Member Functions | List of all members
MockMiddlewareHandle Struct Reference
Inheritance diagram for MockMiddlewareHandle:
Inheritance graph
[legend]
Collaboration diagram for MockMiddlewareHandle:
Collaboration graph
[legend]

Public Member Functions

 MOCK_METHOD (occupancy_map_monitor::OccupancyMapMonitor::Parameters, getParameters,(),(const, override))
 
 MOCK_METHOD (occupancy_map_monitor::OccupancyMapUpdaterPtr, loadOccupancyMapUpdater,(const std::string &sensor_plugin),(override))
 
 MOCK_METHOD (void, initializeOccupancyMapUpdater,(occupancy_map_monitor::OccupancyMapUpdaterPtr occupancy_map_updater),(override))
 
 MOCK_METHOD (void, createSaveMapService,(occupancy_map_monitor::OccupancyMapMonitor::MiddlewareHandle::SaveMapServiceCallback callback),(override))
 
 MOCK_METHOD (void, createLoadMapService,(occupancy_map_monitor::OccupancyMapMonitor::MiddlewareHandle::LoadMapServiceCallback callback),(override))
 
 MOCK_METHOD (rclcpp::Time, now,(),(const, override))
 
 MOCK_METHOD (void, createJointStateSubscription,(const std::string &topic, planning_scene_monitor::JointStateUpdateCallback callback),(override))
 
 MOCK_METHOD (void, resetJointStateSubscription,(),(override))
 
 MOCK_METHOD (std::string, getJointStateTopicName,(),(const, override))
 
 MOCK_METHOD (bool, sleepFor,(const std::chrono::nanoseconds &nanoseconds),(const, override))
 
 MOCK_METHOD (bool, ok,(),(const, override))
 
 MOCK_METHOD (void, createStaticTfSubscription,(TfCallback callback),(override))
 
 MOCK_METHOD (void, createDynamicTfSubscription,(TfCallback callback),(override))
 
 MOCK_METHOD (std::string, getStaticTfTopicName,(),(const, override))
 
 MOCK_METHOD (std::string, getDynamicTfTopicName,(),(const, override))
 
 MOCK_METHOD (void, resetTfSubscriptions,(),(override))
 
- Public Member Functions inherited from occupancy_map_monitor::OccupancyMapMonitor::MiddlewareHandle
virtual ~MiddlewareHandle ()=default
 Destroys the object. Needed because this is pure virtual interface.
 
virtual Parameters getParameters () const =0
 Gets the parameters struct.
 
virtual OccupancyMapUpdaterPtr loadOccupancyMapUpdater (const std::string &sensor_plugin)=0
 Loads an occupancy map updater based on string.
 
virtual void initializeOccupancyMapUpdater (OccupancyMapUpdaterPtr occupancy_map_updater)=0
 Initializes the occupancy map updater. Needed because of interface to OccupancyMapUpdater.
 
virtual void createSaveMapService (SaveMapServiceCallback callback)=0
 Creates a save map service.
 
virtual void createLoadMapService (LoadMapServiceCallback callback)=0
 Creates a load map service.
 
- Public Member Functions inherited from planning_scene_monitor::CurrentStateMonitor::MiddlewareHandle
virtual ~MiddlewareHandle ()=default
 Destroys the object.
 
virtual rclcpp::Time now () const =0
 Get the current time.
 
virtual void createJointStateSubscription (const std::string &topic, JointStateUpdateCallback callback)=0
 Creates a joint state subscription.
 
virtual void createStaticTfSubscription (TfCallback callback)=0
 Creates a static transform message subscription.
 
virtual void createDynamicTfSubscription (TfCallback callback)=0
 Creates a dynamic transform message subscription.
 
virtual void resetJointStateSubscription ()=0
 Reset the joint state subscription.
 
virtual std::string getJointStateTopicName () const =0
 Get the joint state topic name.
 
virtual bool sleepFor (const std::chrono::nanoseconds &nanoseconds) const =0
 Block for the specified amount of time.
 
virtual bool ok () const =0
 Uses rclcpp::ok to check the context status.
 
virtual std::string getStaticTfTopicName () const =0
 Get the static transform topic name.
 
virtual std::string getDynamicTfTopicName () const =0
 Get the dynamic transform topic name.
 
virtual void resetTfSubscriptions ()=0
 Reset the static & dynamic transform subscriptions.
 

Additional Inherited Members

- Public Types inherited from occupancy_map_monitor::OccupancyMapMonitor::MiddlewareHandle
using SaveMapServiceCallback = std::function< bool(const std::shared_ptr< rmw_request_id_t > request_header, const std::shared_ptr< moveit_msgs::srv::SaveMap::Request > request, std::shared_ptr< moveit_msgs::srv::SaveMap::Response > response)>
 
using LoadMapServiceCallback = std::function< bool(const std::shared_ptr< rmw_request_id_t > request_header, const std::shared_ptr< moveit_msgs::srv::LoadMap::Request > request, std::shared_ptr< moveit_msgs::srv::LoadMap::Response > response)>
 
- Public Types inherited from planning_scene_monitor::CurrentStateMonitor::MiddlewareHandle
using TfCallback = std::function< void(const tf2_msgs::msg::TFMessage::ConstSharedPtr)>
 

Detailed Description

Definition at line 48 of file occupancy_map_monitor_tests.cpp.

Member Function Documentation

◆ MOCK_METHOD() [1/16]

MockMiddlewareHandle::MOCK_METHOD ( bool  ,
ok  ,
()  ,
(const, override)   
)

◆ MOCK_METHOD() [2/16]

MockMiddlewareHandle::MOCK_METHOD ( bool  ,
sleepFor  ,
(const std::chrono::nanoseconds &nanoseconds)  ,
(const, override)   
)

◆ MOCK_METHOD() [3/16]

MockMiddlewareHandle::MOCK_METHOD ( occupancy_map_monitor::OccupancyMapMonitor::Parameters  ,
getParameters  ,
()  ,
(const, override)   
)

◆ MOCK_METHOD() [4/16]

MockMiddlewareHandle::MOCK_METHOD ( occupancy_map_monitor::OccupancyMapUpdaterPtr  ,
loadOccupancyMapUpdater  ,
(const std::string &sensor_plugin)  ,
(override)   
)

◆ MOCK_METHOD() [5/16]

MockMiddlewareHandle::MOCK_METHOD ( rclcpp::Time  ,
now  ,
()  ,
(const, override)   
)

◆ MOCK_METHOD() [6/16]

MockMiddlewareHandle::MOCK_METHOD ( std::string  ,
getDynamicTfTopicName  ,
()  ,
(const, override)   
)

◆ MOCK_METHOD() [7/16]

MockMiddlewareHandle::MOCK_METHOD ( std::string  ,
getJointStateTopicName  ,
()  ,
(const, override)   
)

◆ MOCK_METHOD() [8/16]

MockMiddlewareHandle::MOCK_METHOD ( std::string  ,
getStaticTfTopicName  ,
()  ,
(const, override)   
)

◆ MOCK_METHOD() [9/16]

MockMiddlewareHandle::MOCK_METHOD ( void  ,
createDynamicTfSubscription  ,
(TfCallback callback)  ,
(override)   
)

◆ MOCK_METHOD() [10/16]

MockMiddlewareHandle::MOCK_METHOD ( void  ,
createJointStateSubscription  ,
(const std::string &topic, planning_scene_monitor::JointStateUpdateCallback callback)  ,
(override)   
)

◆ MOCK_METHOD() [11/16]

MockMiddlewareHandle::MOCK_METHOD ( void  ,
createLoadMapService  ,
(occupancy_map_monitor::OccupancyMapMonitor::MiddlewareHandle::LoadMapServiceCallback callback)  ,
(override)   
)

◆ MOCK_METHOD() [12/16]

MockMiddlewareHandle::MOCK_METHOD ( void  ,
createSaveMapService  ,
(occupancy_map_monitor::OccupancyMapMonitor::MiddlewareHandle::SaveMapServiceCallback callback)  ,
(override)   
)

◆ MOCK_METHOD() [13/16]

MockMiddlewareHandle::MOCK_METHOD ( void  ,
createStaticTfSubscription  ,
(TfCallback callback)  ,
(override)   
)

◆ MOCK_METHOD() [14/16]

MockMiddlewareHandle::MOCK_METHOD ( void  ,
initializeOccupancyMapUpdater  ,
(occupancy_map_monitor::OccupancyMapUpdaterPtr occupancy_map_updater)  ,
(override)   
)

◆ MOCK_METHOD() [15/16]

MockMiddlewareHandle::MOCK_METHOD ( void  ,
resetJointStateSubscription  ,
()  ,
(override)   
)

◆ MOCK_METHOD() [16/16]

MockMiddlewareHandle::MOCK_METHOD ( void  ,
resetTfSubscriptions  ,
()  ,
(override)   
)

The documentation for this struct was generated from the following files: