当前位置:网站首页>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/
边栏推荐
- 2022 new examination questions for crane driver (limited to bridge crane) and question bank for crane driver (limited to bridge crane) operation examination
- For the first time in China, three Tsinghua Yaoban undergraduates won the stoc best student thesis award
- Redis master-slave replication
- General configuration toolbox
- 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
- Leetcode notes No.7
- 130. 被围绕的区域
- 130. Zones environnantes
- Redis集群
猜你喜欢
Common configurations in rectangular coordinate system
3、多智能体强化学习
Ag9310 same function alternative | cs5261 replaces ag9310type-c to HDMI single switch screen alternative | low BOM replaces ag9310 design
Several frequently used OCR document scanning tools | no watermark | avoid IQ tax
Capstone/cs5210 chip | cs5210 design scheme | cs5210 design data
130. Zones environnantes
The Ministry of housing and urban rural development officially issued the technical standard for urban information model (CIM) basic platform, which will be implemented from June 1
Basic realization of line chart (II)
Blue Bridge Cup embedded (F103) -1 STM32 clock operation and led operation method
133. Clone map
随机推荐
Guojingxin center "APEC investment +": some things about the Internet sector today | observation on stabilizing strategic industrial funds
130. 被围绕的区域
Overall introduction of the project
Design method and application of ag9311maq and ag9311mcq in USB type-C docking station or converter
Frequency probability and Bayesian probability
Ag9310 for type-C docking station scheme circuit design method | ag9310 for type-C audio and video converter scheme circuit design reference
Kafka-connect将Kafka数据同步到Mysql
2021 tea master (primary) examination materials and tea master (primary) simulation test questions
10. CNN applied to handwritten digit recognition
Probability distribution
Led serial communication
3. MNIST dataset classification
Smart grid overview
133. Clone map
Introduction to the types and repair methods of chip Eco
Definition and classification of energy
Cross modal semantic association alignment retrieval - image text matching
Basic realization of line graph
Codeforces Round #804 (Div. 2)
redis的持久化方式-RDB和AOF 两种持久化机制