二维码相机标定ROS小车

记录二维码标定ROS小车

前一段时间电脑系统崩溃,导致Ubuntu重装。

  1. 共享文件夹方法:

https://jingyan.baidu.com/article/fec7a1e54ff0935191b4e765.html

  1. Ubuntu 网络激活失败解决办法

(但是解决后好像还是会继续出现这个毛病):
https://blog.csdn.net/Javaxw666/article/details/88137325

  1. 编译出错:

    分析:缺少缺少ros的串口包
    解决办法:
sudo apt-get install ros-melodic-serial

见博客:https://blog.csdn.net/weixin_37058227/article/details/79319056

  1. 编译出错:

关于serialport,没有在include中找到头文件 “serial_port/xyz.h”,serialport的include文件夹是空的

[ 86%] Built target rplidarNode
Scanning dependencies of target apriltags2_ros_generate_messages
[ 86%] Built target apriltags2_ros_generate_messages
/home/superman/catkin_ws/src/serial_port/src/serial_port.cpp:12:14: error: ‘laser’ in namespace ‘serial_port’ does not name a type
 serial_port::laser laser_array;
              ^~~~~
/home/superman/catkin_ws/src/serial_port/src/serial_port.cpp:61:47: error: ‘laser’ in namespace ‘serial_port’ does not name a type
 void chatterCallback_laser(const serial_port::laser::ConstPtr& msg)//
                                               ^~~~~
/home/superman/catkin_ws/src/serial_port/src/serial_port.cpp:61:62: error: expected unqualified-id before ‘&’ token
 void chatterCallback_laser(const serial_port::laser::ConstPtr& msg)//
                                                              ^
/home/superman/catkin_ws/src/serial_port/src/serial_port.cpp:61:62: error: expected ‘)’ before ‘&’ token
/home/superman/catkin_ws/src/serial_port/src/serial_port.cpp:61:64: error: expected initializer before ‘msg’
 void chatterCallback_laser(const serial_port::laser::ConstPtr& msg)//
                                                                ^~~
/home/superman/catkin_ws/src/serial_port/src/serial_port.cpp: In function ‘int main(int, char**):
/home/superman/catkin_ws/src/serial_port/src/serial_port.cpp:256:58: error: ‘chatterCallback_laser’ was not declared in this scope
     ros::Subscriber laser_sub = n.subscribe("laser",1000,chatterCallback_laser);
                                                          ^~~~~~~~~~~~~~~~~~~~~
/home/superman/catkin_ws/src/serial_port/src/serial_port.cpp:256:58: note: suggested alternative: ‘chatterCallback’
     ros::Subscriber laser_sub = n.subscribe("laser",1000,chatterCallback_laser);
                                                          ^~~~~~~~~~~~~~~~~~~~~
                                                          chatterCallback
serial_port/CMakeFiles/serial_port.dir/build.make:62: recipe for target 'serial_port/CMakeFiles/serial_port.dir/src/serial_port.cpp.o' failed
make[2]: *** [serial_port/CMakeFiles/serial_port.dir/src/serial_port.cpp.o] Error 1
CMakeFiles/Makefile2:1185: recipe for target 'serial_port/CMakeFiles/serial_port.dir/all' failed
make[1]: *** [serial_port/CMakeFiles/serial_port.dir/all] Error 2
make[1]: *** 正在等待未完成的任务....
[ 87%] Linking CXX executable /home/superman/catkin_ws/devel/lib/usb_cam/usb_cam_node
[ 87%] Built target usb_cam_node
In file included from /home/superman/catkin_ws/src/Apriltags2_VO-master/apriltags2/include/apriltag.h:42:0,
                 from /home/superman/catkin_ws/src/Apriltags2_VO-master/apriltags2_ros/include/apriltags2_ros/common_functions.h:70,
                 from /home/superman/catkin_ws/src/Apriltags2_VO-master/apriltags2_ros/src/common_functions.cpp:32:
/home/superman/catkin_ws/src/Apriltags2_VO-master/apriltags2/include/common/matd.h: In function ‘int matd_is_vector_len(const matd_t*, int):
/home/superman/catkin_ws/src/Apriltags2_VO-master/apriltags2/include/common/matd.h:280:39: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
     return (a->ncols == 1 && a->nrows == len) || (a->ncols == len && a->nrows == 1);
                              ~~~~~~~~~^~~~~~
/home/superman/catkin_ws/src/Apriltags2_VO-master/apriltags2/include/common/matd.h:280:60: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
     return (a->ncols == 1 && a->nrows == len) || (a->ncols == len && a->nrows == 1);
                                                   ~~~~~~~~~^~~~~~
[ 88%] Linking CXX shared library /home/superman/catkin_ws/devel/lib/libcommon.so
[ 88%] Built target common
Makefile:140: recipe for target 'all' failed
make: *** [all] Error 2
Invoking "make -j4 -l4" failed
superman@superman-virtual-machine:~/catkin_ws$ 

  • 1
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值