Open mengchaoheng opened 2 years ago
Install and initialize ROS kinetic desktop full, additional ROS packages, catkin-tools, and wstool:
$ sudo sh -c 'echo "deb http://packages.ros.org/ros/ubuntu `lsb_release -sc` main" > /etc/apt/sources.list.d/ros-latest.list'
$ wget http://packages.ros.org/ros.key -O - | sudo apt-key add -
$ sudo apt-get update
$ sudo apt-get install ros-noetic-desktop-full ros-noetic-joy ros-noetic-octomap-ros ros-noetic-mavlink python3-wstool python3-catkin-tools protobuf-compiler libgoogle-glog-dev ros-noetic-control-toolbox ros-noetic-mavros
$ sudo rosdep init
$ rosdep update
$ source /opt/ros/kinetic/setup.bash
If you don't have ROS workspace yet you can do so by
$ mkdir -p ~/catkin_ws/src
$ cd ~/catkin_ws/src
$ catkin_init_workspace # initialize your catkin workspace
$ wstool init
$ wget https://raw.githubusercontent.com/ethz-asl/rotors_simulator/master/rotors_hil.rosinstall
$ wstool merge rotors_hil.rosinstall
$ wstool update
Note On OS X you need to install yaml-cpp using Homebrew
brew install yaml-cpp
.
Build your workspace with python_catkin_tools
(therefore you need python_catkin_tools
)
$ cd ~/catkin_ws/
$ catkin build
3.1. If you don't have rotors_simulator
$ cd ~/catkin_ws/src
$ git clone https://github.com/ethz-asl/rotors_simulator.git
.bashrc
file$ echo "source ~/catkin_ws/devel/setup.bash" >> ~/.bashrc
$ source ~/.bashrc
Hello, I followed your instructions but I get the following error:
Could you please help me?
you need python 3?
Hello, I followed your instructions but I get the following error:
Could you please help me?
you need python3?
yes, It seems like that
Hello, I also followed the instructions and I got this error.
What is the problem here? Could you please help me?
[build] Found 17 packages in 0.0 seconds.
[build] Package table is up to date.
Starting >>> mav_msgs
Starting >>> mav_state_machine_msgs
Finished <<< mav_state_machine_msgs [ 1.1 seconds ]
Starting >>> mav_system_msgs
Finished <<< mav_system_msgs [ 1.3 seconds ]
Starting >>> mavlink
Finished <<< mav_msgs [ 2.8 seconds ]
Starting >>> mav_planning_msgs
Errors << mavlink:make /home/ecn/ros/logs/mavlink/build.make.003.log
Traceback (most recent call last):
File "/home/ecn/ros/src/mavlink/pymavlink/tools/mavgen.py", line 16, in
...................................................................................................................................................................
Failed << mavlink:make [ Exited with code 2 ]
Failed <<< mavlink [ 0.8 seconds ]
Abandoned <<< rotors_comm [ Unrelated job failed ]
Abandoned <<< rotors_control [ Unrelated job failed ]
Abandoned <<< rotors_description [ Unrelated job failed ]
Abandoned <<< rotors_evaluation [ Unrelated job failed ]
Abandoned <<< rotors_hil_interface [ Unrelated job failed ]
Abandoned <<< rotors_joy_interface [ Unrelated job failed ]
Abandoned <<< rqt_rotors [ Unrelated job failed ]
Abandoned <<< urdf_tutorial [ Unrelated job failed ]
Abandoned <<< mav_comm [ Unrelated job failed ]
Abandoned <<< rotors_gazebo_plugins [ Unrelated job failed ]
Abandoned <<< rotors_gazebo [ Unrelated job failed ]
Abandoned <<< rotors_simulator [ Unrelated job failed ]
Finished <<< mav_planning_msgs [ 2.1 seconds ]
[build] Summary: 4 of 17 packages succeeded.
[build] Ignored: None.
[build] Warnings: None.
[build] Abandoned: 12 packages were abandoned.
[build] Failed: 1 packages failed.
[build] Runtime: 5.2 seconds total.
@giabattag You are missing a python dependency:
ModuleNotFoundError: No module named 'future'
Thanks a lot, yeah I did not know that "future" was an actual python pip module, i confused it with future
@mengchaoheng You are missing a python dependency:
ModuleNotFoundError: No module named 'future'
CMake Error: File /home/liaochao/catkin_ws_CICRSIM/src/mavlink/config.h.in does not exist. CMake Error at /home/liaochao/catkin_ws_CICRSIM/src/mavlink/CMakeLists.txt:68 (configure_file): configure_file Problem configuring file
the problem how to solve?missing file
Hi @Leo-Chao I fixed it using the mavlink's git: https://mavlink.io/en/getting_started/installation.html
Hi @Leo-Chao I fixed it using the mavlink's git: https://mavlink.io/en/getting_started/installation.html
yes, I got it before u share it with me, but i still thanks.
need to install
python3-wstool python3-catkin-tools
instead ofpython-wstool python-catkin-tools
, and the name isnoetic
instead ofkinetic