1 #ifndef PFUCLT_PUBLISHER_H 2 #define PFUCLT_PUBLISHER_H 5 #include <read_omni_dataset/RobotState.h> 6 #include <read_omni_dataset/LRMGTData.h> 7 #include <read_omni_dataset/Estimate.h> 11 #include <tf2_geometry_msgs/tf2_geometry_msgs.h> 12 #include <tf2/LinearMath/Quaternion.h> 13 #include <tf2/transform_datatypes.h> 14 #include <tf2_ros/transform_broadcaster.h> 15 #include <geometry_msgs/PoseArray.h> 16 #include <geometry_msgs/PoseStamped.h> 17 #include <sensor_msgs/PointCloud.h> 18 #include <visualization_msgs/Marker.h> 19 #include <geometry_msgs/TransformStamped.h> 49 ROS_INFO(
"Resizing particle message");
53 for (uint p = 0; p < n; ++p) {
105 void gtDataCallback(
const read_omni_dataset::LRMGTData::ConstPtr &);
115 #endif //PFUCLT_PUBLISHER_H ParticleFilter * getPFReference()
getPFReference - retrieve a reference to the base class's members
ros::Publisher particlePublisher_
std::vector< ros::Publisher > robotEstimatePublishers_
read_omni_dataset::LRMGTData msg_GT_
ros::Publisher targetObservationsPublisher_
ros::Publisher targetEstimatePublisher_
struct pfuclt_omni_dataset::PFPublisher::PublishData pubData
void publishTargetState()
ros::Publisher estimatePublisher_
The PFPublisher class - implements publishing for the ParticleFilter class using ROS.
ros::Publisher targetGTPublisher_
std::vector< ros::Publisher > particleStdPublishers_
void gtDataCallback(const read_omni_dataset::LRMGTData::ConstPtr &)
gtDataCallback - callback of ground truth data
read_omni_dataset::Estimate msg_estimate_
void publishRobotStates()
std::vector< tf2_ros::TransformBroadcaster > robotBroadcasters
void nextIteration()
nextIteration - extends the base class method to add the ROS publishing
std::vector< ros::Publisher > robotGTPublishers_
ros::Publisher targetParticlePublisher_
The PFinitData struct - provides encapsulation to the initial data necessary to construct a ParticleF...
const uint nSubParticleSets_
PublishData(float robotHeight)
PublishData - contains information necessary for the PFPublisher class.
pfuclt_omni_dataset::particles msg_particles_
void publishTargetObservations()
PFPublisher(struct PFinitData &data, struct PublishData publishData)
PFPublisher - constructor.
virtual void resize_particles(const uint n)
resize_particles - change to a different number of particles
void resize_particles(const uint n)
resize_particles - change to a different number of particles and resize the publishing message ...