项目场景:
vscode下
rosrun时报错
问题描述:
具体问题:
terminate called after throwing an instance of 'ros::InvalidNameException'
what(): Character [�] is not valid as the first character in Graph Resource Name [班主任]. Valid characters are a-z, A-Z, / and in some cases ~.
已放弃 (核心已转储)
原因分析:
上图中初始化ros节点时,第三个参量不能包含中文或者其他违法字符,例如上图第八行“班主任”
解决方案:
将”班主任“改为合法字符例如“banzhuren”下图,然后重新编译则通过