【ROS】ROSmsg cakin_make编译错误

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

【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_fr

  • 1
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

-ATAO----

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值