-
Notifications
You must be signed in to change notification settings - Fork 123
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
compile problem #1
Comments
This error results from not having PX4's mav_comm package. This can be solved with the following code: cd $WORKSPACE/src This tutorial provides scripts (labeled steps 3-5) for installing ROS, Gazebo, ArduCopter, and other supporting software packages. The “Step 3″ script installs the latest Github version of Ardupilot and JSBSim simulator. The “Step 4″ script installs ROS Indigo (the full desktop version) and several dependencies including DRCsim and MAVROS required for the ArduPilot simulation. Let me know if that helps. Thanks for pointing it out! |
Thank you for the reply
It seems to me that moveit_core package require eigen3 to be installed. actually, moveit_core/CMakeLists.txt:64 file is as followings
|
I have eigen3 packages as followings wkyoun@wkyoun-15Z960-GA70K:~$ dpkg -p libeigen3-dev
|
@wilselby catkin_package( catkin make works correctly at some points, but it produce error as followings it seems to me that there are errors of source code in ROS_quadrotor_simulator/quad_control/src/library/quad_controller.cpp. Would you please let me know how to fix it?
Main error is due to the absence of mav_msgs::CommandTrajectory in the source code
So, I added followings in /home/wkyoun/catkin_ws/src/ROS_quadrotor_simulator/quad_control/include/quad_control /quad_controller.h #include <mav_msgs/CommandTrajectory.h> It looks like problem is resolved as some point, but the another problem occurs as followings
|
It looks like you downloaded the moveit_core package from source into your catkin/src folder. I installed my moveit from the Debian packages and not from source. I don't have moveit_core/CMakeLists.txt in my moveit_core directory but my package.xml file has a dependency on eigen not eigen3. Remove it and try installing the moveit package from the Debian packages. sudo apt-get install ros-indigo-moveit-full This should also install the moveit_core package and all dependencies. You could run this to double check it was installed: sudo apt-get install ros-indigo-moveit-core For future reference, all ROS packages from debian packages and not from source. I linked to the ROS wiki for all these pages as a reference. If not you can run: apt-cache show ros-indigo-moveit-core My version was 0.7.1 if you want to compare. I ran dpkg -p libeigen3-dev and got the same results as you did for the eigen3 package. As for this: "Main error is due to the absence of mav_msgs::CommandTrajectory in the source code" This message is included in the mav_comm code you installed previously (https://github.com/PX4/mav_comm/tree/master/mav_msgs/msg) I would double check it is in your catkin/src folder and see if perhaps there were errors associated with moveit dependencies that caused this to fail. -Wil |
I would like to sincerely appreciate your help. Due to your previous comment, the previous problem regarding moveit package was resolved. I really hope that this will be the last compile problem that I ask
It seems to me that above compile problem is related to "mav_msgs/include/eigen_mav_msgs.h" (following link: https://github.com/ethz-asl/mav_comm/blob/master/mav_msgs/include/mav_msgs/eigen_mav_msgs.h) Actually I can find the file(eigen_mav_msgs.h in mav_msgs), I don't know why this problem happens. In more detail, eigen_mav_msgs.h is in mav_msgs/include/mav_msgs folder not in mav_msgs/include/ as stated in /ROS_quadrotor_simulator/quad_control/src/nodes
I assumed that the compile problem may be due to the incorrect calling the location of eigen_mav_msgs.h, So I changed like this in waypoint_publisher_node.h
But compile problem still occurs Would you please let me know how to fix it? Thank you in advance. |
Looking at the waypoint_publisher_node.h here the include should be:
As you pointed out, that file path isn't mav_msgs/include/eigen_mav_msgs.h It looks like somehow the version you are using is looking for an /include/ folder that isn't there. I would try just using the following code and re-compiling. I would also look for other includes in the header that might also have that extra "/include/" and remove it. Try just this:
-Wil |
Thank you for the comment
It seems to me that following structures( Would you please help me out? Actually, I download from https://github.com/ethz-asl/mav_comm, and compile it. Nothing was problem. |
Can you make sure that your CMakeLists.txt and package.xml in the quad_control package match the ones I linked? Specifically, make sure that "mav_msgs" is included in both of them. It is in a few places in each file. These structures are defined in the following files so not sure where the disconnect is. Maybe you can use the absolute path instead of the relative path? The variables command_trajectory and threedNav_trajectory are defined in waypoint_publisher_node.h so make sure that file hasn't been accidentally modified. The definitions of those variables in that file is below. mav_msgs::EigenCommandTrajectory command_trajectory; |
Thank you for the comment Most of my problem are related to mav_msgs, but
|
Can you confirm this part? I can't think of anything else right now: "Can you make sure that your CMakeLists.txt and package.xml in the quad_control package match the ones I linked? Specifically, make sure that "mav_msgs" is included in both of them. It is in a few places in each file." Alternatively, you can try to create your own test file and add the include statements one by one to see which one is causing the error. |
Use rotor_simulator from link: https://github.com/wilselby/rotors_simulator |
I also updated the readme with some details about the required dependencies and installation instructions. Let me know if that helps. |
I have compile problem as following
Would you please let me know how to fix it?
(I cannot find planning_msgs ROS package from website)
The text was updated successfully, but these errors were encountered: