@毛哥成山轮胎机油保养 我现在有一个疑问,2种运行方式,为什么程序运行的不一样呢,终端返回的信息也不一样 ?
ros2 launch imu_get_cpp imu_cpp.launch.py
[INFO] [launch]: All log files can be found below /home/m/.ros/log/2023-08-31-18-56-23-189690-ubun-13754
[INFO] [launch]: Default logging verbosity is set to INFO
[INFO] [publisher_imu_node-1]: process started with pid [13756]
[publisher_imu_node-1] [INFO] [1693479383.314753546] [publisher_imu_node]: imu串口初始化完成!
^C[WARNING] [launch]: user interrupted with ctrl-c (SIGINT)
[publisher_imu_node-1] [INFO] [1693479445.030912184] [rclcpp]: signal_handler(signal_value=2)
[publisher_imu_node-1] imu发出命令: a4 3 8 23 d2
[publisher_imu_node-1] imu发布线程工作中
[publisher_imu_node-1] imu线程退出
/home/m/ros2_ws/install/imu_get_cpp/lib/imu_get_cpp/publisher_imu_node
[INFO] [1693479448.843189189] [publisher_imu_node]: imu串口初始化完成!
imu发出命令: a4 3 8 23 d2
imu发布线程工作中
^C^C[INFO] [1693479476.254140522] [rclcpp]: signal_handler(signal_value=2)
imu线程退出
按理说这2种运行方式都是一样的,第一种是ros2的标准运行命令,第二种是按c++的运行命令,为什么程序运行的方式不一样呢,有没有懂的大佬给解释一下,非常感谢