前言

环境: ubuntu 20.04 ; ROS版本: noetic;

问题

运行

roslaunch waypoint_trajectory_generator test.launch 

出现如下错误

Invalid argument "/map" passed to canTransform argument source_frame in tf2 frame_ids cannot start with a '/' like:

解决
src/waypoint_trajectory_generator/src/trajectory_generator_node.cpp

修改void visWayPointTraj( MatrixXd polyCoeff, VectorXd time) 函数下的_traj_vis.header.frame_id = "map"
修改void visWayPointPath(MatrixXd path) 函数下的 points.header.frame_id = line_list.header.frame_id = "map"

这里是把/map 修改为了 map

Logo

魔乐社区(Modelers.cn) 是一个中立、公益的人工智能社区,提供人工智能工具、模型、数据的托管、展示与应用协同服务,为人工智能开发及爱好者搭建开放的学习交流平台。社区通过理事会方式运作,由全产业链共同建设、共同运营、共同享有,推动国产AI生态繁荣发展。

更多推荐