01.3.1 에러 해결 노하우 - pineland/px4 GitHub Wiki
cd ~
cd catkin_ws/src
git clone https://github.com/Jaeyoung-Lim/modudculab_ros.git
catkin build modudculab_ros
-> include(mavros_msgs/CommandBool.h), success not member(~/catkin_ws/src/modudculab_ros/src/pub_setpoints_traj.cpp) 에러 발생!!
vi ~/catkin_ws/src/modudculab_ros/CMakeLists.txt
115번줄 : include_directories(include) -> include_directories(/home/youngsoo/catkin_ws/devel/include)
vi ~/catkin_ws/src/modudculab_ros/src/pub_setpoints_traj.cpp
74번줄 : offb_set_mode.response.success -> offb_set_mode.response.mode_sent
[FATAL] [1510402014.360292957]: UAS: GeographicLib exception: File not readable /usr/share/GeographicLib/geoids/egm96-5.pgm | Run install_geographiclib_dataset.sh script in order to install Geoid Model dataset!
[FATAL] [1510402543.782254397]: FCU: DeviceError:serial:open: No such file or directory
cd ~/catkin_ws/src/mavros/mavros/scripts
sudo ./install_geographiclib_datasets.sh
cd ~/catkin_ws/src/modudculab_ros/launch/
vi ctrl_pos_gazebo.launch
첫번째줄 : <!-- arg name="fcu_url" default= "udp://:[email protected]:14557"--> <arg name="fcu_url" default= "/dev/ttyUSB0:921600" />
-> <arg name="fcu_url" default= "udp://:[email protected]:14557" />
$ rqt_bag
Traceback (most recent call last):
File "/opt/ros/kinetic/bin/rqt_bag", line 5, in
from rqt_bag.bag import Bag
File "/opt/ros/kinetic/lib/python2.7/dist-packages/rqt_bag/bag.py", line 39, in
from .bag_widget import BagWidget
File "/opt/ros/kinetic/lib/python2.7/dist-packages/rqt_bag/bag_widget.py", line 40, in
from python_qt_binding.QtCore import Qt, qInfo, qWarning, Signal
ImportError: cannot import name qInfo
sudo vi /opt/ros/kinetic/lib/python2.7/dist-packages/rqt_bag/bag_widget.py
from python_qt_binding.QtCore import Qt, qInfo, qWarning, Signal
->
from python_qt_binding.QtCore import Qt, qWarning, Signal
Then comment every call to qInfo in the above file.
Try rqt_bag again.
When I run the command that "roslaunch px4 multi_uav_mavros_sitl.launch", the following error is occured
xacro.py: error: expected exactly one input file as argument
while processing /home/burobotics/Guang/src/Firmware/launch/single_vehcile_spawn.launch:
......
cd ~/src/Frimware/launch
vi single_vehcile_spawn.launch
; Replace the line(13번줄)
<arg name="cmd" default="$(find xacro)/xacro.py $(find px4)/Tools/sitl_gazebo/models/rotors_description/urdf/$(arg vehicle)_base.xacro rotors_description_dir:=$(find px4)/Tools/sitl_gazebo/models/rotors_description mavlink_udp_port:=$(arg mavlink_udp_port) > $(arg vehicle)_$(arg ID).urdf ; 'gz sdf -p $(arg vehicle)_$(arg ID).urdf'" />
->
<arg name="cmd" default="$(find xacro)/xacro.py $(find px4)/Tools/sitl_gazebo/models/rotors_description/urdf/$(arg vehicle)_base.xacro rotors_description_dir:=$(find px4)/Tools/sitl_gazebo/models/rotors_description mavlink_udp_port:=$(arg mavlink_udp_port)" />
then try again.
roslaunch px4 multi_uav_mavros_sitl.launch