Go to the documentation of this file. 1 #ifndef AIKIDO_PERCEPTION_POSEESTIMATORMODULE_HPP_
2 #define AIKIDO_PERCEPTION_POSEESTIMATORMODULE_HPP_
6 #include <dart/dart.hpp>
7 #include <tf/transform_listener.h>
17 namespace perception {
47 ros::NodeHandle nodeHandle,
48 const std::string& markerTopic,
49 std::shared_ptr<AssetDatabase> assetData,
50 std::shared_ptr<aikido::io::CatkinResourceRetriever> resourceRetriever,
51 const std::string& referenceFrameId,
52 dart::dynamics::Frame* referenceLink);
64 ros::Duration timeout = ros::Duration(),
65 ros::Time timestamp = ros::Time(0.0),
66 std::vector<DetectedObject>* detectedObjects =
nullptr)
override;
94 #endif // AIKIDO_PERCEPTION_POSEESTIMATORMODULE_HPP_
The interface for the generic perception module.
Definition: PerceptionModule.hpp:16
tf::TransformListener mTfListener
Listens to the transform attached to the node.
Definition: PoseEstimatorModule.hpp:88
bool detectObjects(const aikido::planner::WorldPtr &env, ros::Duration timeout=ros::Duration(), ros::Time timestamp=ros::Time(0.0), std::vector< DetectedObject > *detectedObjects=nullptr) override
Run the specific detector via a service call or ROS message reception, lookup the transform between t...
Format of serialized trajectory in YAML.
Definition: algorithm.hpp:4
ros::NodeHandle mNodeHandle
For the ROS node that will work with the April Tags module.
Definition: PoseEstimatorModule.hpp:70
std::string mReferenceFrameId
The desired reference frame for the object pose.
Definition: PoseEstimatorModule.hpp:82
std::string mMarkerTopic
The name of the ROS topic to read marker info from.
Definition: PoseEstimatorModule.hpp:73
std::shared_ptr< aikido::io::CatkinResourceRetriever > mResourceRetriever
To retrieve resources from disk and from packages.
Definition: PoseEstimatorModule.hpp:79
std::shared_ptr< World > WorldPtr
Definition: World.hpp:14
PoseEstimatorModule(ros::NodeHandle nodeHandle, const std::string &markerTopic, std::shared_ptr< AssetDatabase > assetData, std::shared_ptr< aikido::io::CatkinResourceRetriever > resourceRetriever, const std::string &referenceFrameId, dart::dynamics::Frame *referenceLink)
Construct a PoseEstimator receiver that subscribes to the specified topic where objects' pose informa...
virtual ~PoseEstimatorModule()=default
Instantiates the PerceptionModule specifically for PoseEstimator.
Definition: PoseEstimatorModule.hpp:27
std::shared_ptr< AssetDatabase > mAssetData
The pointer to the loader of visual asset data.
Definition: PoseEstimatorModule.hpp:76
dart::dynamics::Frame * mReferenceLink
The reference frame of HERB to transform with respect to.
Definition: PoseEstimatorModule.hpp:85