当前位置:网站首页>ROS 问题(topic types do not match、topic datatype/md5sum not match、msg xxx have changed. rerun cmake)
ROS 问题(topic types do not match、topic datatype/md5sum not match、msg xxx have changed. rerun cmake)
2022-07-07 23:26:00 【wohu1104】
1. topic types 不匹配
使用 roslaunch
命令
roslaunch carla_ros_bridge carla_ros_bridge_with_example_ego_vehicle.launch
启动官方 demo 后,试图通过手写 Python
脚本来控制车辆,但是有下面报错:
Could not process inbound connection: topic types do not match:
[carla_msgs/CarlaEgoVehicleControl] vs. [topic_demo/CarlaEgoVehicleControl]
很明显 topic
类型不匹配,我们需要给 carla_msgs/CarlaEgoVehicleControl
发送控制命令,那么我们的 topic
也应该是 carla_msgs
。
解决方法:
- 在
~/catkin_ws
目录下重新创建carla_msgs
文件夹后再重新执行catkin_make
命令
2. topic datatype/md5sum 不一致
问题 1 解决后又有如下报错
Could not process inbound connection: Client [/carla_ros_bridge]
wants topic [/carla/ego_vehicle/vehicle_control_cmd] to have datatype/md5sum
[carla_msgs/CarlaEgoVehicleControl/e5b57fc698c12ff4c20a5fc71fba832f],
but our version has [carla_msgs/CarlaEgoVehicleControl/919d1c0732720a839958ff82b9ba0dcd]
Dropping connection.
是因为我们修改了该 topic
对应的 msg
或者 srv
文件,导致两者的 MD5
值不一致。
解决方法:
- 将原始的
msg
或者srv
文件拷贝过来放到自己当前Python
项目的package
目录下,然后重新执行catkin_make
。
3. message/service xxx have changed. Please rerun cmake.
问题 1 和 2 解决后接着执行 catkin_make
命令时又报错:
The dependencies of the message/service 'carla_msgs/CarlaEgoVehicleControl' have changed. Please rerun cmake.
carla_msgs/CMakeFiles/_carla_msgs_generate_messages_check_deps_CarlaEgoVehicleControl.dir/build.make:57:
recipe for target 'carla_msgs/CMakeFiles/_carla_msgs_generate_messages_check_deps_CarlaEgoVehicleControl' failed
很明显由于 CarlaEgoVehicleControl.msg
文件改动后导致需要重新 cmake
。
解决方法:
- 删除工作空间
~/catkin_ws
中devel
和build
目录下对应的项目目录文件,比如我的目录carla_msgs
。(build
目录下包含include
和lib
目录)
参考:https://answers.ros.org/question/138731/catkin_make-clean/
边栏推荐
- 130. 被围绕的区域
- Gnuradio3.9.4 create OOT module instances
- 2021-03-06 - play with the application of reflection in the framework
- 2021 welder (primary) examination skills and welder (primary) operation examination question bank
- Kafka-connect将Kafka数据同步到Mysql
- Gnuradio 3.9 using OOT custom module problem record
- 2022 tea master (intermediate) examination questions and tea master (intermediate) examination skills
- redis的持久化方式-RDB和AOF 两种持久化机制
- 4、策略学习
- 2022 R1 fast opening pressure vessel operation test question bank and R1 fast opening pressure vessel operation free test questions
猜你喜欢
Understanding of expectation, variance, covariance and correlation coefficient
Probability distribution
2、TD+Learning
Ag9310 design USB type C to hdmi+u2+5v slow charging scheme design | ag9310 expansion dock scheme circuit | type-C dongle design data
2021-03-14 - play with generics
Markdown learning (entry level)
General configuration toolbox
Getting started STM32 -- how to learn stm32
Su embedded training - Day9
Saving and reading of network model
随机推荐
Common configurations in rectangular coordinate system
Smart agricultural technology framework
10. CNN applied to handwritten digit recognition
Guojingxin center "APEC investment +": some things about the Internet sector today | observation on stabilizing strategic industrial funds
How to transfer Netease cloud music /qq music to Apple Music
Saving and reading of network model
2022 high altitude installation, maintenance and demolition examination materials and high altitude installation, maintenance and demolition operation certificate examination
How to write mark down on vscode
8. Optimizer
Design method and application of ag9311maq and ag9311mcq in USB type-C docking station or converter
Continued from the previous design
Gnuradio3.9.4 create OOT module instances
Talk about smart Park
解决报错:npm WARN config global `--global`, `--local` are deprecated. Use `--location=global` instead.
General configuration toolbox
[loss function] entropy / relative entropy / cross entropy
2022 free test questions of fusion welding and thermal cutting and summary of fusion welding and thermal cutting examination
2022 refrigeration and air conditioning equipment operation examination questions and refrigeration and air conditioning equipment operation examination skills
2022 chemical automation control instrument examination summary and chemical automation control instrument simulation examination questions
Cs5212an design display to VGA HD adapter products | display to VGA Hd 1080p adapter products