简单的ros::tf介绍
2017-02-18 16:27
176 查看
costmap_2d–> 代价地图
costmap_2d::Costmap2DROS是
costmap_2d::Costmap2D的封装
namespace costmap_2d;
构造函数
Costmap2DROS (std::string name, tf::TransformListener &tf)
name: map的名字
tf: 一个TransformListener的引用
实例
tf::TransformListener tf(ros::Duration(10)); costmap_2d::Costmap2DROS costmap("my_costmap", tf);
// 来自ros官方
bool getRobotPose(tf::Stamped<tf::Pose>& global_pose) const;
/** * @brief Get the pose of the robot in the global frame of the costmap * @param global_pose Will be set to the pose of the robot in the global frame of the costmap * @return True if the pose was set successfully, false otherwise */ bool getRobotPose(tf::Stamped<tf::Pose>& global_pose) const;
返回值 : 是否成功获得机器人的位置
参数 : 一个
tf::Stamped<tf::Pose>以记录位置
std::string getGlobalFrameID()
/** * @brief Returns the global frame of the costmap * @return The global frame of the costmap */ std::string getGlobalFrameID() { return global_frame_; }
获取全局参考系的名称
相关文章推荐
- ROS Learning-004 beginner_Tutorials 介绍简单的ROS命令
- (三)介绍简单的ROS命令
- 特征值提取之 -- TF-IDF值的简单介绍
- 配置ROS工作环境以及简单介绍文件系统(二)
- ROS Learning-004 beginner_Tutorials 介绍简单的ROS命令
- tf.nn.embedding_lookup简单介绍
- 学习9:rosed命令的简单介绍 + 创建ROS消息和ROS服务。
- ROS进二阶学习笔记(1) TF 学习笔记1:TF介绍 + tf工具
- ROS--TF学习--介绍
- Struts - 基于MVC设计模式的JSP (简单介绍)
- Java 公开原始码报--对Open Source简单介绍
- 阎宏:Java语言简单工厂创立性模式介绍
- RSS简单介绍
- 简单介绍 DocBook
- C++/CLI 简单介绍
- Web Services的简单介绍
- UML建模过程(超简单介绍)
- 数据库访问简单实现edainfo-model(一)——简要介绍
- PPP的协商过程简单介绍
- ORACLE SEQUENCE的简单介绍