ROS 2 Humble Hawksbill 环境基础

举报
zhangrelay 发表于 2022/05/27 22:23:36 2022/05/27
【摘要】 安装和使用系统环境如下 支持Ubuntu+Windows等: 其实现在Ubuntu+Windows一家亲,如下,♥。 DDS依据项目需要安装合适版本。   基本上啥都支持,何止ubuntu,移动端很多APP都直接用。  回归主题!ROS2 Humble基础  环境: Ubuntu&...

安装和使用系统环境如下

支持Ubuntu+Windows等:

其实现在Ubuntu+Windows一家亲,如下,♥。

DDS依据项目需要安装合适版本。

 

基本上啥都支持,何止ubuntu,移动端很多APP都直接用。 

回归主题!ROS2 Humble基础 


环境:

Ubuntu source /opt/ros/humble/setup.bash

Windows  call C:\dev\ros2\local_setup.bat

显示环境变量:

U:printenv | grep -i ROS

W:set | findstr -i ROS

设置 ROS_DOMAIN_ID 网络相关 

U: export ROS_DOMAIN_ID=<your_domain_id>

W: set ROS_DOMAIN_ID=<your_domain_id>

使用前需要正确配置ROS 2开发环境。 这可以通过两种方式完成:在打开的每个新 shell 中获取设置文件,或者将 source 命令添加到启动脚本中。

如果在定位或使用 ROS 2 软件包时遇到任何问题,应该做的第一件事是检查环境变量并确保它们设置为想要的版本和发行版。


turtlesim


如上是ROS2吉祥物全集

ros2 pkg executables turtlesim

 

重命名

ros2 run turtlesim turtle_teleop_key --ros-args --remap turtle1/cmd_vel:=turtle2/cmd_vel

图形化工具rqt

sudo apt install ros-humble-rqt-robot-* 

安装包日期220520

Setting up ros-humble-rqt-robot-monitor (1.0.5-2jammy.20220520.023300) ...
Setting up ros-humble-rqt-robot-steering (1.0.0-4jammy.20220520.023302) ...
Setting up ros-humble-rqt-robot-dashboard (0.6.1-3jammy.20220520.023534) ...

zhangrelay@LAPTOP-5REQ7K1L:~$ ros2 run rqt_robot_steering rqt_robot_steering
qt_gui_main() found no plugin matching "rqt_robot_steering.robot_steering.RobotSteering"
try passing the option "--force-discover"
[ros2run]: Process exited with failure 1
zhangrelay@LAPTOP-5REQ7K1L:~$ ros2 run rqt_robot_steering rqt_robot_steering  --force-discover


核心功能包,源码地址如下,需要切换为humble:


  
  1. repositories:
  2. ament/ament_cmake:
  3. type: git
  4. url: https://github.com/ament/ament_cmake.git
  5. version: master
  6. ament/ament_index:
  7. type: git
  8. url: https://github.com/ament/ament_index.git
  9. version: master
  10. ament/ament_lint:
  11. type: git
  12. url: https://github.com/ament/ament_lint.git
  13. version: master
  14. ament/ament_package:
  15. type: git
  16. url: https://github.com/ament/ament_package.git
  17. version: master
  18. ament/google_benchmark_vendor:
  19. type: git
  20. url: https://github.com/ament/google_benchmark_vendor.git
  21. version: main
  22. ament/googletest:
  23. type: git
  24. url: https://github.com/ament/googletest.git
  25. version: ros2
  26. ament/uncrustify_vendor:
  27. type: git
  28. url: https://github.com/ament/uncrustify_vendor.git
  29. version: master
  30. eProsima/Fast-CDR:
  31. type: git
  32. url: https://github.com/eProsima/Fast-CDR.git
  33. version: master
  34. eProsima/Fast-DDS:
  35. type: git
  36. url: https://github.com/eProsima/Fast-DDS.git
  37. version: master
  38. eProsima/foonathan_memory_vendor:
  39. type: git
  40. url: https://github.com/eProsima/foonathan_memory_vendor.git
  41. version: master
  42. eclipse-cyclonedds/cyclonedds:
  43. type: git
  44. url: https://github.com/eclipse-cyclonedds/cyclonedds.git
  45. version: releases/0.9.x
  46. eclipse-iceoryx/iceoryx:
  47. type: git
  48. url: https://github.com/eclipse-iceoryx/iceoryx.git
  49. version: release_2.0
  50. ignition/ignition_cmake2_vendor:
  51. type: git
  52. url: https://github.com/ignition-release/ignition_cmake2_vendor.git
  53. version: main
  54. ignition/ignition_math6_vendor:
  55. type: git
  56. url: https://github.com/ignition-release/ignition_math6_vendor.git
  57. version: main
  58. osrf/osrf_pycommon:
  59. type: git
  60. url: https://github.com/osrf/osrf_pycommon.git
  61. version: master
  62. osrf/osrf_testing_tools_cpp:
  63. type: git
  64. url: https://github.com/osrf/osrf_testing_tools_cpp.git
  65. version: master
  66. ros-perception/image_common:
  67. type: git
  68. url: https://github.com/ros-perception/image_common.git
  69. version: ros2
  70. ros-perception/laser_geometry:
  71. type: git
  72. url: https://github.com/ros-perception/laser_geometry.git
  73. version: ros2
  74. ros-planning/navigation_msgs:
  75. type: git
  76. url: https://github.com/ros-planning/navigation_msgs.git
  77. version: ros2
  78. ros-tooling/keyboard_handler:
  79. type: git
  80. url: https://github.com/ros-tooling/keyboard_handler.git
  81. version: main
  82. ros-tooling/libstatistics_collector:
  83. type: git
  84. url: https://github.com/ros-tooling/libstatistics_collector.git
  85. version: master
  86. ros-tracing/ros2_tracing:
  87. type: git
  88. url: https://gitlab.com/ros-tracing/ros2_tracing.git
  89. version: master
  90. ros-visualization/interactive_markers:
  91. type: git
  92. url: https://github.com/ros-visualization/interactive_markers.git
  93. version: ros2
  94. ros-visualization/python_qt_binding:
  95. type: git
  96. url: https://github.com/ros-visualization/python_qt_binding.git
  97. version: main
  98. ros-visualization/qt_gui_core:
  99. type: git
  100. url: https://github.com/ros-visualization/qt_gui_core.git
  101. version: main
  102. ros-visualization/rqt:
  103. type: git
  104. url: https://github.com/ros-visualization/rqt.git
  105. version: ros2
  106. ros-visualization/rqt_action:
  107. type: git
  108. url: https://github.com/ros-visualization/rqt_action.git
  109. version: ros2
  110. ros-visualization/rqt_bag:
  111. type: git
  112. url: https://github.com/ros-visualization/rqt_bag.git
  113. version: ros2
  114. ros-visualization/rqt_console:
  115. type: git
  116. url: https://github.com/ros-visualization/rqt_console.git
  117. version: ros2
  118. ros-visualization/rqt_graph:
  119. type: git
  120. url: https://github.com/ros-visualization/rqt_graph.git
  121. version: galactic-devel
  122. ros-visualization/rqt_msg:
  123. type: git
  124. url: https://github.com/ros-visualization/rqt_msg.git
  125. version: foxy-devel
  126. ros-visualization/rqt_plot:
  127. type: git
  128. url: https://github.com/ros-visualization/rqt_plot.git
  129. version: foxy-devel
  130. ros-visualization/rqt_publisher:
  131. type: git
  132. url: https://github.com/ros-visualization/rqt_publisher.git
  133. version: foxy-devel
  134. ros-visualization/rqt_py_console:
  135. type: git
  136. url: https://github.com/ros-visualization/rqt_py_console.git
  137. version: crystal-devel
  138. ros-visualization/rqt_reconfigure:
  139. type: git
  140. url: https://github.com/ros-visualization/rqt_reconfigure.git
  141. version: dashing
  142. ros-visualization/rqt_service_caller:
  143. type: git
  144. url: https://github.com/ros-visualization/rqt_service_caller.git
  145. version: crystal-devel
  146. ros-visualization/rqt_shell:
  147. type: git
  148. url: https://github.com/ros-visualization/rqt_shell.git
  149. version: crystal-devel
  150. ros-visualization/rqt_srv:
  151. type: git
  152. url: https://github.com/ros-visualization/rqt_srv.git
  153. version: crystal-devel
  154. ros-visualization/rqt_topic:
  155. type: git
  156. url: https://github.com/ros-visualization/rqt_topic.git
  157. version: foxy-devel
  158. ros-visualization/tango_icons_vendor:
  159. type: git
  160. url: https://github.com/ros-visualization/tango_icons_vendor.git
  161. version: master
  162. ros/class_loader:
  163. type: git
  164. url: https://github.com/ros/class_loader.git
  165. version: ros2
  166. ros/kdl_parser:
  167. type: git
  168. url: https://github.com/ros/kdl_parser.git
  169. version: ros2
  170. ros/pluginlib:
  171. type: git
  172. url: https://github.com/ros/pluginlib.git
  173. version: ros2
  174. ros/resource_retriever:
  175. type: git
  176. url: https://github.com/ros/resource_retriever.git
  177. version: ros2
  178. ros/robot_state_publisher:
  179. type: git
  180. url: https://github.com/ros/robot_state_publisher.git
  181. version: ros2
  182. ros/ros_environment:
  183. type: git
  184. url: https://github.com/ros/ros_environment.git
  185. version: rolling
  186. ros/ros_tutorials:
  187. type: git
  188. url: https://github.com/ros/ros_tutorials.git
  189. version: rolling-devel
  190. ros/urdfdom:
  191. type: git
  192. url: https://github.com/ros/urdfdom.git
  193. version: master
  194. ros/urdfdom_headers:
  195. type: git
  196. url: https://github.com/ros/urdfdom_headers.git
  197. version: master
  198. ros2/ament_cmake_ros:
  199. type: git
  200. url: https://github.com/ros2/ament_cmake_ros.git
  201. version: master
  202. ros2/common_interfaces:
  203. type: git
  204. url: https://github.com/ros2/common_interfaces.git
  205. version: master
  206. ros2/console_bridge_vendor:
  207. type: git
  208. url: https://github.com/ros2/console_bridge_vendor.git
  209. version: master
  210. ros2/demos:
  211. type: git
  212. url: https://github.com/ros2/demos.git
  213. version: master
  214. ros2/eigen3_cmake_module:
  215. type: git
  216. url: https://github.com/ros2/eigen3_cmake_module.git
  217. version: master
  218. ros2/example_interfaces:
  219. type: git
  220. url: https://github.com/ros2/example_interfaces.git
  221. version: master
  222. ros2/examples:
  223. type: git
  224. url: https://github.com/ros2/examples.git
  225. version: master
  226. ros2/geometry2:
  227. type: git
  228. url: https://github.com/ros2/geometry2.git
  229. version: ros2
  230. ros2/launch:
  231. type: git
  232. url: https://github.com/ros2/launch.git
  233. version: master
  234. ros2/launch_ros:
  235. type: git
  236. url: https://github.com/ros2/launch_ros.git
  237. version: master
  238. ros2/libyaml_vendor:
  239. type: git
  240. url: https://github.com/ros2/libyaml_vendor.git
  241. version: master
  242. ros2/message_filters:
  243. type: git
  244. url: https://github.com/ros2/message_filters.git
  245. version: master
  246. ros2/mimick_vendor:
  247. type: git
  248. url: https://github.com/ros2/mimick_vendor.git
  249. version: master
  250. ros2/orocos_kdl_vendor:
  251. type: git
  252. url: https://github.com/ros2/orocos_kdl_vendor.git
  253. version: main
  254. ros2/performance_test_fixture:
  255. type: git
  256. url: https://github.com/ros2/performance_test_fixture.git
  257. version: main
  258. ros2/pybind11_vendor:
  259. type: git
  260. url: https://github.com/ros2/pybind11_vendor.git
  261. version: master
  262. ros2/python_cmake_module:
  263. type: git
  264. url: https://github.com/ros2/python_cmake_module.git
  265. version: master
  266. ros2/rcl:
  267. type: git
  268. url: https://github.com/ros2/rcl.git
  269. version: master
  270. ros2/rcl_interfaces:
  271. type: git
  272. url: https://github.com/ros2/rcl_interfaces.git
  273. version: master
  274. ros2/rcl_logging:
  275. type: git
  276. url: https://github.com/ros2/rcl_logging.git
  277. version: master
  278. ros2/rclcpp:
  279. type: git
  280. url: https://github.com/ros2/rclcpp.git
  281. version: master
  282. ros2/rclpy:
  283. type: git
  284. url: https://github.com/ros2/rclpy.git
  285. version: master
  286. ros2/rcpputils:
  287. type: git
  288. url: https://github.com/ros2/rcpputils.git
  289. version: master
  290. ros2/rcutils:
  291. type: git
  292. url: https://github.com/ros2/rcutils.git
  293. version: master
  294. ros2/realtime_support:
  295. type: git
  296. url: https://github.com/ros2/realtime_support.git
  297. version: master
  298. ros2/rmw:
  299. type: git
  300. url: https://github.com/ros2/rmw.git
  301. version: master
  302. ros2/rmw_connextdds:
  303. type: git
  304. url: https://github.com/ros2/rmw_connextdds.git
  305. version: master
  306. ros2/rmw_cyclonedds:
  307. type: git
  308. url: https://github.com/ros2/rmw_cyclonedds.git
  309. version: master
  310. ros2/rmw_dds_common:
  311. type: git
  312. url: https://github.com/ros2/rmw_dds_common.git
  313. version: master
  314. ros2/rmw_fastrtps:
  315. type: git
  316. url: https://github.com/ros2/rmw_fastrtps.git
  317. version: master
  318. ros2/rmw_implementation:
  319. type: git
  320. url: https://github.com/ros2/rmw_implementation.git
  321. version: master
  322. ros2/ros2cli:
  323. type: git
  324. url: https://github.com/ros2/ros2cli.git
  325. version: master
  326. ros2/ros2cli_common_extensions:
  327. type: git
  328. url: https://github.com/ros2/ros2cli_common_extensions.git
  329. version: master
  330. ros2/ros_testing:
  331. type: git
  332. url: https://github.com/ros2/ros_testing.git
  333. version: master
  334. ros2/rosbag2:
  335. type: git
  336. url: https://github.com/ros2/rosbag2.git
  337. version: master
  338. ros2/rosidl:
  339. type: git
  340. url: https://github.com/ros2/rosidl.git
  341. version: master
  342. ros2/rosidl_dds:
  343. type: git
  344. url: https://github.com/ros2/rosidl_dds.git
  345. version: master
  346. ros2/rosidl_defaults:
  347. type: git
  348. url: https://github.com/ros2/rosidl_defaults.git
  349. version: master
  350. ros2/rosidl_python:
  351. type: git
  352. url: https://github.com/ros2/rosidl_python.git
  353. version: master
  354. ros2/rosidl_runtime_py:
  355. type: git
  356. url: https://github.com/ros2/rosidl_runtime_py.git
  357. version: master
  358. ros2/rosidl_typesupport:
  359. type: git
  360. url: https://github.com/ros2/rosidl_typesupport.git
  361. version: master
  362. ros2/rosidl_typesupport_fastrtps:
  363. type: git
  364. url: https://github.com/ros2/rosidl_typesupport_fastrtps.git
  365. version: master
  366. ros2/rpyutils:
  367. type: git
  368. url: https://github.com/ros2/rpyutils.git
  369. version: master
  370. ros2/rviz:
  371. type: git
  372. url: https://github.com/ros2/rviz.git
  373. version: ros2
  374. ros2/spdlog_vendor:
  375. type: git
  376. url: https://github.com/ros2/spdlog_vendor.git
  377. version: master
  378. ros2/sros2:
  379. type: git
  380. url: https://github.com/ros2/sros2.git
  381. version: master
  382. ros2/system_tests:
  383. type: git
  384. url: https://github.com/ros2/system_tests.git
  385. version: master
  386. ros2/test_interface_files:
  387. type: git
  388. url: https://github.com/ros2/test_interface_files.git
  389. version: master
  390. ros2/tinyxml2_vendor:
  391. type: git
  392. url: https://github.com/ros2/tinyxml2_vendor.git
  393. version: master
  394. ros2/tinyxml_vendor:
  395. type: git
  396. url: https://github.com/ros2/tinyxml_vendor.git
  397. version: master
  398. ros2/tlsf:
  399. type: git
  400. url: https://github.com/ros2/tlsf.git
  401. version: master
  402. ros2/unique_identifier_msgs:
  403. type: git
  404. url: https://github.com/ros2/unique_identifier_msgs.git
  405. version: master
  406. ros2/urdf:
  407. type: git
  408. url: https://github.com/ros2/urdf.git
  409. version: ros2
  410. ros2/yaml_cpp_vendor:
  411. type: git
  412. url: https://github.com/ros2/yaml_cpp_vendor.git
  413. version: master

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

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

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

评论(0

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

全部回复

上滑加载中

设置昵称

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

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

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