23 #include <rosinrange_msg/range_pose.h> 43 void odomCallback(
const geometry_msgs::TransformStampedConstPtr& msg);
45 void rangeCallback(
const rosinrange_msg::range_poseConstPtr& msg);
58 void rvizMarkerPublish(
const uint32_t anchor_id,
const float r,
const geometry_msgs::Point& uav,
59 const geometry_msgs::Point& anchor);
void odomCallback(const geometry_msgs::TransformStampedConstPtr &msg)
ros::Publisher odom_base_pub_
tf::StampedTransform grid_to_world_tf_
void initialPoseReceived(const geometry_msgs::PoseWithCovarianceStampedConstPtr &msg)
tf::Transform base_2_odom_tf_
sensor_msgs::PointCloud2 map_point_cloud_msg_
ros::Timer grid_slice_pub_timer_
ros::Subscriber point_sub_
double getYawFromTf(const tf::Transform &tf)
Return yaw from a given TF.
void publishGridSlice(const ros::TimerEvent &)
ros::Publisher cloud_filter_pub_
ros::Timer map_point_cloud_pub_timer_
bool checkUpdateThresholds()
Check motion and time thresholds for AMCL update.
ros::Publisher particles_pose_pub_
Struct that contains the data concerning one particle.
ros::Subscriber initialpose_sub_
ros::Subscriber range_sub_
std::vector< Range > range_data
tf::Transform lastupdatebase_2_odom_tf_
tf::Transform lastbase_2_world_tf_
tf::Transform amcl_out_lastbase_2_odom_tf_
tf::Transform lastodom_2_world_tf_
void rvizMarkerPublish(const uint32_t anchor_id, const float r, const geometry_msgs::Point &uav, const geometry_msgs::Point &anchor)
To show range sensors in Rviz.
ros::Publisher range_markers_pub_
ros::Publisher map_point_cloud_pub_
void setInitialPose(const tf::Transform &init_pose, const float x_dev, const float y_dev, const float z_dev, const float a_dev)
Set the initial pose of the particle filter.
void publishGridTf(const ros::TimerEvent &)
ros::Time nextupdate_time_
tf::Transform initodom_2_world_tf_
void publishMapPointCloud(const ros::TimerEvent &)
nav_msgs::OccupancyGrid grid_slice_msg_
tf::Transform odom_increment_tf
ros::Subscriber odom_sub_
ros::Publisher grid_slice_pub_
void pointcloudCallback(const sensor_msgs::PointCloud2ConstPtr &msg)
void rangeCallback(const rosinrange_msg::range_poseConstPtr &msg)
ros::Timer grid_to_world_tf_timer_