蓝桥ROS之f1tenth案例学习与调试(成功)

举报
zhangrelay 发表于 2022/05/02 22:45:31 2022/05/02
【摘要】 失败案例: 蓝桥ROS之f1tenth案例学习与调试(失败) 其实这个版本是适用于kinetic/melodic/noetic 为何失败呢? 需要将kinetic功能包全部更新到20210503版本!!! 然后编译就一切ok! shiyanlou:f1tenth/ (master*) $ catkin_make ...

失败案例:

蓝桥ROS之f1tenth案例学习与调试(失败)


其实这个版本是适用于kinetic/melodic/noetic

为何失败呢?

需要将kinetic功能包全部更新到20210503版本!!!

然后编译就一切ok!


  
  1. shiyanlou:f1tenth/ (master*) $ catkin_make [15:07:45]
  2. Base path: /home/shiyanlou/Code/f1tenth
  3. Source space: /home/shiyanlou/Code/f1tenth/src
  4. Build space: /home/shiyanlou/Code/f1tenth/build
  5. Devel space: /home/shiyanlou/Code/f1tenth/devel
  6. Install space: /home/shiyanlou/Code/f1tenth/install
  7. ####
  8. #### Running command: "make cmake_check_build_system" in "/home/shiyanlou/Code/f1tenth/build"
  9. ####
  10. ####
  11. #### Running command: "make -j4 -l4" in "/home/shiyanlou/Code/f1tenth/build"
  12. ####
  13. [ 35%] Built target f1tenth_simulator
  14. [ 35%] Built target std_msgs_generate_messages_cpp
  15. [ 35%] Built target sensor_msgs_generate_messages_cpp
  16. [ 35%] Built target nav_msgs_generate_messages_cpp
  17. [ 35%] Built target nav_msgs_generate_messages_lisp
  18. [ 35%] Built target std_msgs_generate_messages_lisp
  19. [ 35%] Built target sensor_msgs_generate_messages_lisp
  20. [ 35%] Built target nav_msgs_generate_messages_py
  21. [ 35%] Built target sensor_msgs_generate_messages_py
  22. [ 35%] Built target std_msgs_generate_messages_py
  23. [ 35%] Built target nav_msgs_generate_messages_nodejs
  24. [ 35%] Built target sensor_msgs_generate_messages_nodejs
  25. [ 35%] Built target sensor_msgs_generate_messages_eus
  26. [ 35%] Built target std_msgs_generate_messages_nodejs
  27. [ 35%] Built target std_msgs_generate_messages_eus
  28. [ 35%] Built target nav_msgs_generate_messages_eus
  29. [ 35%] Built target f1tenth_simulator_generate_messages_lisp
  30. [ 35%] Built target f1tenth_simulator_generate_messages_cpp
  31. [ 35%] Built target f1tenth_simulator_generate_messages_py
  32. [ 41%] Built target f1tenth_simulator_generate_messages_eus
  33. [ 41%] Built target f1tenth_simulator_generate_messages_nodejs
  34. [ 52%] Built target random_walk
  35. [ 64%] Built target mux
  36. [ 76%] Built target simulator
  37. [ 88%] Built target keyboard
  38. [ 88%] Built target f1tenth_simulator_generate_messages
  39. [100%] Built target behavior_controller
  40. shiyanlou:f1tenth/ (master*) $

测试一下吧:

激活键盘,开动一下?

k


 

 

更多内容含自动驾驶后续补充。

全部命令如下:
    1  gedit ros.asc
    2  sudo apt-key add ros.asc
    3  sudo apt update
    4  cd Code
    5  git clone https://gitcode.net/ZhangRelay/f1tenth.git
    6  unzip f1tenth/f1tenth_simulator.zip
    7  sudo apt install ros-kinetic-tf2-geometry-msgs ros-kinetic-ackermann-msgs ros-kinetic-joy ros-kinetic-map-server ros-kinetic-message-runtime
    8  ls
    9  cd f1tenth
   10  catkin_make
   11  catkin_make -j1 -l1
   12  catkin_make
   13  sudo apt update
   14  sudo apt upgrade
   15  stage
   16  sudo apt upgrade
   17  sudo sh -c '. /etc/lsb-release && echo "deb http://mirrors.tuna.tsinghua.edu.cn/ros/ubuntu/ `lsb_release -cs` main" > /etc/apt/sources.list.d/ros-latest.list'
   18  sudo apt update
   19  sudo apt upgrade
   20  sudo apt update
   21  catkin_make
   22  source devel/setup.zsh
   23  roslaunch f1tenth_simulator simulator.launch


  
  1. shiyanlou:~/ $ history [15:17:46]
  2. 1 gedit ros.asc
  3. 2 sudo apt-key add ros.asc
  4. 3 sudo apt update
  5. 4 cd Code
  6. 5 git clone https://gitcode.net/ZhangRelay/f1tenth.git
  7. 6 unzip f1tenth/f1tenth_simulator.zip
  8. 7 sudo apt install ros-kinetic-tf2-geometry-msgs ros-kinetic-ackermann-msgs ros-kinetic-joy ros-kinetic-map-server ros-kinetic-message-runtime
  9. 8 ls
  10. 9 cd f1tenth
  11. 10 catkin_make
  12. 11 catkin_make -j1 -l1
  13. 12 catkin_make
  14. 13 sudo apt update
  15. 14 sudo apt upgrade
  16. 15 stage
  17. 16 sudo apt upgrade
  18. 17 sudo sh -c '. /etc/lsb-release && echo "deb http://mirrors.tuna.tsinghua.edu.cn/ros/ubuntu/ `lsb_release -cs` main" > /etc/apt/sources.list.d/ros-latest.list'
  19. 18 sudo apt update
  20. 19 sudo apt upgrade
  21. 20 sudo apt update
  22. 21 catkin_make
  23. 22 source devel/setup.zsh
  24. 23 roslaunch f1tenth_simulator simulator.launch
  25. shiyanlou:~/ $ [15:17:51]

 

文章来源: zhangrelay.blog.csdn.net,作者:zhangrelay,版权归原作者所有,如需转载,请联系作者。

原文链接:zhangrelay.blog.csdn.net/article/details/124534689

【版权声明】本文为华为云社区用户转载文章,如果您发现本社区中有涉嫌抄袭的内容,欢迎发送邮件进行举报,并提供相关证据,一经查实,本社区将立刻删除涉嫌侵权内容,举报邮箱: cloudbbs@huaweicloud.com
  • 点赞
  • 收藏
  • 关注作者

评论(0

0/1000
抱歉,系统识别当前为高风险访问,暂不支持该操作

全部回复

上滑加载中

设置昵称

在此一键设置昵称,即可参与社区互动!

*长度不超过10个汉字或20个英文字符,设置后3个月内不可修改。

*长度不超过10个汉字或20个英文字符,设置后3个月内不可修改。