记录编译ros编译bug

1 . fatal error: ros/ros.h: No such file or directory

Cmakelists中添加:

include_directories(include ${catkin_INCLUDE_DIRS})

2 . No rule to make target ....

Cmakelists中添加:

catkin_package() 中需要加上所依赖的文件,可以参看find_package()里边的内容

3 . 运行程序出现 ASSERTION FAILED Call to publish() on an invalid Publisher

在主函数里边没有定义发布者,需要在主函数里边定义发布者。

4 . 编译出现“Eigen/Core: No such file or directory#include <Eigen/Core>”

在CMakeLists.txt中加入,

include_directories("/usr/include/eigen3")

5 . 运行joy节点出现“ERROR: cannot launch node of type [joy/joy_node]: Cannot locate node of type [joy_node] in package [joy]. Make sure file exists in package path and permission is set to executable (chmod +x)”

把joy功能包下载下来,放在src目录下,编译

下载地址:GitHub - ros-drivers/joystick_drivers: ROS drivers for joysticks

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值