我要学习ros2相关的语法知识,因此利用Google搜索技巧“学习内容+wiki tutorial”,发现ros的official website document,里边有关于ros2的tutorial,以及how to install and question fourm.these source interest me a lot.
ros2 version: humble
参考资料:http://docs.ros.org/en/humble/Tutorials.html
so,now i want to share some note about ros2 grammar.
- ros2 environment config
- ros2 run
- ros2 node
- ros2 topic
- ros2 service
- ros2 action
- ros2 parameters
- ros2_gui aqt
- ros2 interface show
- ros2 lanuch
- yaml
总体来说,语法学习起来还是比较简单的,学习起来也是比较有趣,official tutorial讲解的比较有趣,结合turtlesim_package,实践与理论相结合,很轻松。
那么接下来我要继续学习client相关的知识,也就是beginner的第二阶段,加油!
some note:
环境配置
- check ros2 version
- check ros2 environment value
- check ros2 environment shell setup.shz
- ros2 node
- node list
- node info
- aqt_graph
- —ros-args —remap __node:=
- ros2 topic
- topic list
- topic list -t
- msg type
- topic echo
- topic interface show:struct of msg type
- topic pub [—once/—rate ]
“{yaml}” - topic hz
- ros2 service
- service list
- service list -t
- service type <srv_name>
- interface show <srv_type>
- service call <srv_name> <srv_type> “{yaml}”
- service find <srv_type>
- ros2 parameters
- ros2 param list
- ros2 param get <node_name> <param_name>
- ros2 param set <node_name> <param_name> value
- ros2 param dump <node_name> > <file_name>.yaml
- ros2 param load <node_name> <file_name>.yaml
- ros2 run turtlesim turtlesim_node —ros-args —params-file <file_name>.yaml
- ros2 action
- ros2 action list
- ros2 action list -t
- ros2 action info <action_name>
- ros2 action send_goal <action_name> <action_type> “{yaml}”
- ros2 interface show <action_type_name>
- yaml
http://wiki.ros.org/YAML Overview