当前位置:网站首页>CLI tool foundation of ros2 robot f1tenth
CLI tool foundation of ros2 robot f1tenth
2022-06-29 21:43:00 【zhangrelay】
The case applies to ROS2 The following three versions :
- humble
- galactic
- foxy
Apply to win/linux/macos.
Why do you choose f1tenth, Continuity , Before using f1tenth Of ros1 Explain the case .
For details, please refer to the following links :
Blue bridge ROS And f1tenth Simple PID Run along the wall (Python)
ROS2 The basic course can refer to :
ROS2 Robot personal tutorial blog summary (2021 common 6 set )
The course tutorial iteration update is only in progress , When not finished .
f1tenth The demand for resources is very small , Suitable for course teaching , And seamlessly support cloud practices , Focus on this .
Be good at using all kinds of help documents , for example :
ros2 -h
The command will list all ros2 Of CLI command :
[email protected]:~$ ros2 -h
usage: ros2 [-h] [--use-python-default-buffering] Call `ros2 <command> -h` for more detailed usage. ...
ros2 is an extensible command-line tool for ROS 2.
options:
-h, --help show this help message and exit
--use-python-default-buffering
Do not force line buffering in stdout and instead use the python default buffering, which
might be affected by PYTHONUNBUFFERED/-u and depends on whatever stdout is interactive or not
Commands:
action Various action related sub-commands
bag Various rosbag related sub-commands
component Various component related sub-commands
daemon Various daemon related sub-commands
doctor Check ROS setup and other potential issues
interface Show information about ROS interfaces
launch Run a launch file
lifecycle Various lifecycle related sub-commands
multicast Various multicast related sub-commands
node Various node related sub-commands
param Various param related sub-commands
pkg Various package related sub-commands
run Run a package specific executable
security Various security related sub-commands
service Various service related sub-commands
topic Various topic related sub-commands
wtf Use `wtf` as alias to `doctor`
Call `ros2 <command> -h` for more detailed usage.The default system environment is imported :
source /opt/ros/humble/setup.bash
Custom function pack environment import , Under the corresponding folder :
~/ros_ws/f1tenth_gym_ros$ source install/setup.sh
Look at the system variables :
printenv | grep -i ROS

Use F1tenth and rqt:
~/ros_ws/f1tenth_gym_ros$ ros2 launch f1tenth_gym_ros gym_bridge_launch.py

Try the following command :
- ros2 node list
- ros2 topic list
- ros2 service list
- ros2 action list
[email protected]:~$ ros2 topic list
/bond
/clicked_point
/clock
/cmd_vel
/diagnostics
/drive
/ego_racecar/odom
/ego_robot_description
/goal_pose
/initialpose
/joint_states
/map
/map_server/transition_event
/map_updates
/parameter_events
/rosout
/scan
/tf
/tf_static
[email protected]:~$ ros2 service list
/bridge/describe_parameters
/bridge/get_parameter_types
/bridge/get_parameters
/bridge/list_parameters
/bridge/set_parameters
/bridge/set_parameters_atomically
/ego_robot_state_publisher/describe_parameters
/ego_robot_state_publisher/get_parameter_types
/ego_robot_state_publisher/get_parameters
/ego_robot_state_publisher/list_parameters
/ego_robot_state_publisher/set_parameters
/ego_robot_state_publisher/set_parameters_atomically
/lifecycle_manager_localization/describe_parameters
/lifecycle_manager_localization/get_parameter_types
/lifecycle_manager_localization/get_parameters
/lifecycle_manager_localization/is_active
/lifecycle_manager_localization/list_parameters
/lifecycle_manager_localization/manage_nodes
/lifecycle_manager_localization/set_parameters
/lifecycle_manager_localization/set_parameters_atomically
/map_server/change_state
/map_server/describe_parameters
/map_server/get_available_states
/map_server/get_available_transitions
/map_server/get_parameter_types
/map_server/get_parameters
/map_server/get_state
/map_server/get_transition_graph
/map_server/list_parameters
/map_server/load_map
/map_server/map
/map_server/set_parameters
/map_server/set_parameters_atomically
/rviz/describe_parameters
/rviz/get_parameter_types
/rviz/get_parameters
/rviz/list_parameters
/rviz/set_parameters
/rviz/set_parameters_atomically
[email protected]:~$ ros2 node list
/bridge
/ego_robot_state_publisher
/lifecycle_manager_localization
/map_server
/rviz
/transform_listener_impl_55c114fc5430
[email protected]:~$ ros2 action listrqt or rqt --force-discover
rqt --help
usage: main.py [-b BINDING] [--clear-config] [-f] [--force-discover] [-h] [-ht] [-l] [-p PERSPECTIVE]
[--perspective-file PERSPECTIVE_FILE] [--reload-import] [-s PLUGIN] [-t] [-v]
[--args [PLUGIN_ARGS ...]] [--list-perspectives] [--list-plugins] [--command-pid PID]
[--command-start-plugin PLUGIN] [--command-switch-perspective PERSPECTIVE]Options for GUI instance:
-b BINDING, --qt-binding BINDING
choose Qt bindings to be used [pyqt|pyside]
--clear-config clear the configuration (including all perspectives and plugin settings)
-f, --freeze-layout freeze the layout of the GUI (prevent rearranging widgets, disable undock/redock)
--force-discover force a rediscover of plugins
-h, --help show this help message and exit
-ht, --hide-title hide the title label, the icon, and the help button (combine with -l and -f to eliminate the
entire title bar and reclaim the space)
-l, --lock-perspective
lock the GUI to the used perspective (hide menu bar and close buttons of plugins)
-p PERSPECTIVE, --perspective PERSPECTIVE
start with this named perspective
--perspective-file PERSPECTIVE_FILE
start with a perspective loaded from a file
--reload-import reload every imported module
-s PLUGIN, --standalone PLUGIN
start only this plugin (implies -l). To pass arguments to the plugin use --args
-t, --on-top set window mode to always on top
-v, --verbose output qDebug messages
--args [PLUGIN_ARGS ...]
arbitrary arguments which are passes to the plugin (only with -s, --command-start-plugin or
--embed-plugin). It must be the last option since it collects all following options.Options to query information without starting a GUI instance:
These options can be used to query information about valid arguments for various options.--list-perspectives list available perspectives
--list-plugins list available pluginsOptions to operate on a running GUI instance:
These options can be used to perform actions on a running GUI instance.--command-pid PID pid of the GUI instance to operate on, defaults to oldest running GUI instance
--command-start-plugin PLUGIN
start plugin
--command-switch-perspective PERSPECTIVE
switch perspectiveSpecial options for embedding widgets from separate processes:
These options should never be used on the CLI but only from the GUI code itself.

---
边栏推荐
- leetcode:724. Find the central subscript of the array
- Matlab output format control%d,%f,%c,%s usage
- How do new shareholders open accounts online? Is it safe to open an account online?
- Topic39——78. subset
- Matlab adds noise / disturbance to data
- 不同系统下的文件层级符号小结
- 企业实施MES系统的关键点详解
- Redis (I) -- getting started with redis (1) -- redis introduction, installation and startup, and common configurations
- 数字密码锁verilog设计+仿真+上板验证
- Bs-gx-017 online examination management system based on SSM
猜你喜欢

Golang operation NSQ distributed message queue

How to evaluate iFLYTEK AI translation pen P20 series? Is it worth buying?

PostgreSQL weekly news - June 22

Design of VHDL telephone billing system

leetcode:307. 区域和检索 - 数组可修改

Layer 3 loop brought by route Summary - solution experiment

STM32最小系统搭建(原理图)

leetcode:370. 区间加法

American tunneling ASTM E84 surface flame retardant test

小型圖書館項目總結
随机推荐
小型图书馆项目总结
Threejs basic introduction
不同系统下的文件层级符号小结
亚马逊关键词搜索API接口(item_search-按关键字搜索亚马逊商品接口),亚马逊API接口
MES系统与ERP如何集成?本文告诉你答案
The explain function of the DALEX package of R language generates a machine learning model interpreter and predict for the specified classification prediction_ The parts function analyzes the contribu
彩涂钢板密封板申请BS 476-3如何备样?
STL tutorial 6-deque, stack, queue, list container
Getting started with completabilefuture
报表交付工程师
Analysis of the factors affecting the transmission signal of the conductive slip ring
Db查询数据库合并两个不相关的表,新增不存在的字段,并赋予默认值
Goahead webserver migration
Shell implementation of Memcache cache cache hit rate monitoring script
知识蒸馏(Knowledge Distilling)学习笔记
Gstreamer应用开发实战指南(五)
Practical guide to GStreamer application development (V)
leetcode:370. Interval addition
yolov6训练自己的数据记录+yolov5对比测试