STM32和ROS串口通信常见问题汇总答疑

STM32和ROS串口通信常见问题汇总答疑

大家好,我是白茶清欢,最近看了博客文章《stm32和ros的串口通信》有很多问题的评论,这里汇总回复一下。

问题1:运行时报错如下:

rosrun topic_example publish_node
terminate called after throwing an instance of 'boost::exception_detail::clone_impl >'
  what():  open: No such file or directory
已放弃 (核心已转储)

或者下面这个:

Error: system:5
请检查您的串口/dev/ttyUSB0,是否已经准备好:
 1.读写权限是否打开(默认不打开) 
 2.串口名称是否正确
terminate called after throwing an instance of 'boost::exception_detail::clone_impl >'
  what():  write: Bad f

你可能感兴趣的:(从零搭建ros机器人平台,机器人)