【msg 文件里面有重复定义的字段 】删除就好了
– Using these message generators: gencpp;geneus;genlisp;gennodejs;genpy
– Using these message generators: gencpp;geneus;genlisp;gennodejs;genpy
/opt/ros/melodic/share/genmsg/cmake/pkg-genmsg.cmake.em:56: error: <class ‘genmsg.base.InvalidMsgSpec’>: /home/tao/Desktop/TelloGo_WS/src/tellogo/msg/Mytellostate.msg: Duplicate field names in message: [‘get_response’, ‘get_height’, ‘get_speed’, ‘get_battery’, ‘get_flight_time’, ‘get_response’, ‘get_acceleration’, ‘set_speed_x’, ‘set_speed_y’, ‘set_speed_z’, ‘set_rotate_cw’, ‘set_rotate_ccw’, ‘set_flip_l’, ‘set_flip_r’, ‘set_flip_f’, ‘set_flip_b’, ‘set_move_backward’, ‘set_move_down’, ‘set_move_forward’, ‘set_move_left’, ‘set_move_right’, ‘set_move_up’, ‘get_temp’, ‘get_attitude’, ‘get_baro’, ‘get_tof’, ‘get_wifi’]
Traceback (most recent call last):
File “/opt/ros/melodic/lib/python2.7/dist-packages/genmsg/msg_loader.py”, line 287, in load_msg_from_file
return load_msg_from_strin

在尝试使用ROSmsg进行cakin_make编译时遇到错误,错误源于msg文件中存在重复定义的字段。解决方案是删除msg文件中重复的字段名,例如:'get_response', 'get_height', 'get_speed'等。完成删除后,编译问题得以解决。"
119643477,7429877,穿山甲平台:助力APP广告收益增长,"['移动开发', '广告技术', '开发者工具', '流量变现', '应用程序']
最低0.47元/天 解锁文章
6381

被折叠的 条评论
为什么被折叠?



