小鱼 ROS 2 新书上线!点击链接查看, 新书配套视频点击链接查看。
提问前必看的发帖注意事项—— 提问前必看!不符合要求的问题拒绝回答!!
社区使用指南—如何添加标签修改密码
humble编译 FishBot主仓库-https://github.com/fishros/fishbot 代码报错
-
在编译到cartographer_ros功能包时报错
[1.697s] WARNING:colcon.colcon_core.package_selection:Some selected packages are already built in one or more underlay workspaces:
'cartographer_ros' is in: /home/hjq/fishbot/install/cartographer_ros, /opt/ros/humble
If a package in a merged underlay workspace is overridden and it installs headers, then all packages in the overlay must sort their include directories by workspace order. Failure to do so may result in build failures or undefined behavior at run time.
If the overridden package is used by another package in any underlay, then the overriding package in the overlay must be API and ABI compatible or undefined behavior at run time may occur.If you understand the risks and want to override a package anyways, add the following to the command line:
--allow-overriding cartographer_rosThis may be promoted to an error in a future release of colcon-override-check.
Starting >>> cartographer_ros
--- stderr: cartographer_ros
/home/hjq/fishbot/src/cartographer_code/cartographer_ros/cartographer_ros/src/ros_log_sink.cpp: In member function ‘virtual void cartographer_ros::ScopedRosLogSink::send(google::LogSeverity, const char*, const char*, int, const tm*, const char*, size_t)’:
/home/hjq/fishbot/src/cartographer_code/cartographer_ros/cartographer_ros/src/ros_log_sink.cpp:49:46: error: cannot convert ‘const tm* const’ to ‘const google::LogMessageTime&’
49 | severity, GetBasename(filename), line, tm_time, message, message_len);
| ^~~~~~~
| |
| const tm* const
In file included from /home/hjq/fishbot/src/cartographer_code/cartographer_ros/cartographer_ros/include/cartographer_ros/ros_log_sink.h:22,
from /home/hjq/fishbot/src/cartographer_code/cartographer_ros/cartographer_ros/src/ros_log_sink.cpp:17:
/usr/local/include/glog/logging.h:1777:53: note: initializing argument 4 of ‘static std::string google::LogSink::ToString(google::LogSeverity, const char*, int, const google::LogMessageTime&, const char*, size_t)’
1777 | const LogMessageTime &logmsgtime,
| ~~~~~~~~~~~~~~~^
gmake[2]: *** [CMakeFiles/cartographer_ros.dir/build.make:188:CMakeFiles/cartographer_ros.dir/src/ros_log_sink.cpp.o] 错误 1
gmake[2]: *** 正在等待未完成的任务....
gmake[1]: *** [CMakeFiles/Makefile2:151:CMakeFiles/cartographer_ros.dir/all] 错误 2
gmake: *** [Makefile:146:all] 错误 2****************************Failed <<< cartographer_ros [13.5s, exited with code 2]
Summary: 0 packages finished [14.7s]
1 package failed: cartographer_ros
1 package had stderr output: cartographer_ros -
@2761607729 请直接二进制安装使用
-
@小鱼 具体怎么安装,是直接安装cartographer_ros这个功能包嘛
-
@2761607729 对的 sudo apt 安装的就是二进制的
-
@小鱼具体指令是什么呢
-
@2761607729 https://fishros.org.cn/forum/topic/111/ros-ros2功能包在线索引网站 先到这里检索是否发布,发布了的就是
sudo apt install ros-版本名称(如 humble)-xxx-xxx
EG:
sudo apt install ros-humble-ros-humble-cartographer