RLException: Invalid <node> tag: ‘ascii‘ codec can‘t decode byte 0xe6报错

2022-08-01,,,

在新电脑上第一次试运行Cartographer报错

roslaunch cartographer_ros demo_backpack_2d.launch bag_filename:=/home/mjy/文档/rosbag/b0-2014-07-11-10-58-16.bag

报错内容为

RLException: Invalid <node> tag: 'ascii' codec can't decode byte 0xe6 in position 10: ordinal not in range(128). 

Node xml is <node args="--clock $(arg bag_filename)" name="playbag" pkg="rosbag" type="play"/>
The traceback for the exception was written to the log file

原因是bag包包含中文路径。因此换:

roslaunch cartographer_ros demo_backpack_2d.launch bag_filename:=/home/mjy/dev/carto_ws/bag/b0-2014-07-11-10-58-16.bag

问题解决

本文地址:https://blog.csdn.net/weixin_44684139/article/details/107554618

《RLException: Invalid <node> tag: ‘ascii‘ codec can‘t decode byte 0xe6报错.doc》

下载本文的Word格式文档,以方便收藏与打印。