|
发表于 2020-5-1 18:18:47
9699 浏览 9 回复
关于make px4_sitl gazebo的错误问题
PX4的ubuntu1604环境搭完
make px4_sitl jmavsim没有问题可以运行
但是make px4_sitl gazebo出现错误不知道怎么解决
请大神帮忙呀
具体问题如下:(详见附件图片)
lihzh21@ubuntu:~/Firmware$ make px4_sitl gazebo
[1/4] Performing build step for 'sitl_gazebo'
[20/52] Building CXX object CMakeFiles/gazebo_usv_dynamics_plugin.dir/src/gazebo_usv_dynamics_plugin.cpp.o
FAILED: /usr/bin/c++ -DLIBBULLET_VERSION=2.83 -DLIBBULLET_VERSION_GT_282 -Dgazebo_usv_dynamics_plugin_EXPORTS -I/usr/include/opencv -isystem /usr/include/gazebo-9 -isystem /usr/include/bullet -isystem /usr/include/simbody -isystem /usr/include/sdformat-6.2 -isystem /usr/include/ignition/math4 -isystem /usr/include/OGRE -isystem /usr/include/OGRE/Terrain -isystem /usr/include/OGRE/Paging -isystem /usr/include/ignition/transport4 -isystem /usr/include/ignition/msgs1 -isystem /usr/include/ignition/common1 -isystem /usr/include/ignition/fuel_tools1 -isystem /usr/include/x86_64-linux-gnu/qt5 -isystem /usr/include/x86_64-linux-gnu/qt5/QtCore -isystem /usr/lib/x86_64-linux-gnu/qt5/mkspecs/linux-g++-64 -I/home/lihzh21/Firmware/Tools/sitl_gazebo/include -I. -I/usr/include/eigen3 -I/usr/include/eigen3/eigen3 -I/usr/include/gazebo-9/gazebo/msgs -I/home/lihzh21/Firmware/mavlink/include -I/home/lihzh21/Firmware/Tools/sitl_gazebo/external/OpticalFlow/include -I/usr/include/gstreamer-1.0 -I/usr/lib/x86_64-linux-gnu/gstreamer-1.0/include -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -isystem /usr/include/uuid -isystem /usr/include/x86_64-linux-gnu -Wno-deprecated-declarations -Wno-address-of-packed-member -fPIC -I/usr/include/uuid -I/usr/include/x86_64-linux-gnu -std=gnu++14 -MMD -MT CMakeFiles/gazebo_usv_dynamics_plugin.dir/src/gazebo_usv_dynamics_plugin.cpp.o -MF CMakeFiles/gazebo_usv_dynamics_plugin.dir/src/gazebo_usv_dynamics_plugin.cpp.o.d -o CMakeFiles/gazebo_usv_dynamics_plugin.dir/src/gazebo_usv_dynamics_plugin.cpp.o -c /home/lihzh21/Firmware/Tools/sitl_gazebo/src/gazebo_usv_dynamics_plugin.cpp
/home/lihzh21/Firmware/Tools/sitl_gazebo/src/gazebo_usv_dynamics_plugin.cpp: In member function ‘virtual void gazebo::UsvDynamicsPlugin::Update()’:
/home/lihzh21/Firmware/Tools/sitl_gazebo/src/gazebo_usv_dynamics_plugin.cpp:251:29: error: missing template arguments before ‘xformV’
ignition::math::Matrix4 xformV(vq);
^
/home/lihzh21/Firmware/Tools/sitl_gazebo/src/gazebo_usv_dynamics_plugin.cpp:285:15: error: ‘xformV’ was not declared in this scope
bpntW = xformV * bpnt;
^
At global scope:
cc1plus: warning: unrecognized command line option ‘-Wno-address-of-packed-member’
[20/52] Building CXX object CMakeFiles/gazebo_irlock_plugin.dir/src/gazebo_irlock_plugin.cpp.o
ninja: build stopped: subcommand failed.
FAILED: cd /home/lihzh21/Firmware/build/px4_sitl_default/build_gazebo && /usr/bin/cmake --build .
ninja: build stopped: subcommand failed.
Makefile:205: recipe for target 'px4_sitl' failed
make: *** [px4_sitl] Error 1
shiqing521已获得悬赏 3 阿木币最佳答案
哦这个问题已经解决了,不问了
|
扫一扫浏览分享
|
|
|
|
|
|
|
楼主|
发表于 2020-5-2 02:41:57
|
|
|
|
|
|
|
楼主|
发表于 2020-5-2 15:23:37
|
|
|
|
|
|
|
你在下面回复 总结你自己的解决办法 然后我选择你自己为正确答案就可以了啊 |
|
|
|
|
|
|
|
发表于 2020-5-9 06:52:21
来自手机
同学请问你是使用阿木提供的开发环境么?我那个make px4_sitl jmavsim失败了,不知道为啥,同样gazebo也没安装好,跪求帮忙解决T。T |
|
|
|
|
|
|
|
您是使用的那个环境 我们提供的环境 应该是没有问题的啊 |
|
我不为己,谁人为我,但我只为己,那我又是谁?
|
|
|
|
|
|
楼主|
发表于 2020-5-10 00:49:25
不是,我是官网下的镜像,一步一坑趟过来的,你截一下报错信息我帮你看看吧 |
|
|
|
|
|
|
|
楼主|
发表于 2020-5-10 00:59:10
解决方法:
错误信息提示Firmware/Tools/sitl_gazebo/src/gazebo_usv_dynamics_plugin.cpp这个文件中 ignition::math::Matrix4 xformV(vq);这个语句中,xformV之前没有定义类型
修改为ignition::math::Matrix4<double> xformV(vq);保存
重新make就可以正常使用了 |
|
|
|
|
|
|
|
发表于 2020-5-10 18:20:28
|
|
|
|
|
|
|
上面已经提供了解决问题的答案拉 认真看一下哈 有不一样的点 也可以发出来让大家看下~~ |
|
|
|
|
|
|
|