1 Star 0 Fork 0

Dreamtale/rosaria

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
LaserPublisher.h 1021 Bytes
一键复制 编辑 原始数据 按行查看 历史
Reed Hedges 提交于 2016-08-19 12:39 . Disabled unused timer
#ifndef ROSARIALASERPUBLISHER_H
#define ROSARIALASERPUBLISHER_H
#include <ros/ros.h>
#include <sensor_msgs/LaserScan.h>
#include <sensor_msgs/PointCloud.h>
#include <tf/transform_broadcaster.h>
class ArLaser;
class ArTime;
class LaserPublisher
{
public:
LaserPublisher(ArLaser* _l, ros::NodeHandle& _n, bool _broadcast_transform = true, const std::string& _tf_frame = "laser", const std::string& _parent_tf_frame = "base_link", const std::string& _global_tf_frame = "odom");
~LaserPublisher();
protected:
void readingsCB();
void publishLaserScan();
void publishPointCloud();
ArFunctorC<LaserPublisher> laserReadingsCB;
ros::NodeHandle& node;
ArLaser *laser;
ros::Publisher laserscan_pub, pointcloud_pub;
sensor_msgs::LaserScan laserscan;
sensor_msgs::PointCloud pointcloud;
std::string tfname;
std::string parenttfname;
std::string globaltfname;
tf::Transform lasertf;
tf::TransformBroadcaster transform_broadcaster;
bool broadcast_tf;
//ArTime *readingsCallbackTime;
};
#endif
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/DreamT-mac/rosaria.git
git@gitee.com:DreamT-mac/rosaria.git
DreamT-mac
rosaria
rosaria
master

搜索帮助