cvar-upm / cvg_ardrone2_ibvs

Vision based control for object following in UAVs
http://robotics.asu.edu/ardrone2_ibvs/
Other
87 stars 46 forks source link

A bunch of errors when compiling with indigo (14.04 LTS) #5

Open dragan1alex opened 8 years ago

dragan1alex commented 8 years ago

Hi guys! Can you help me out with making it compile without it screaming at me? :3 I'm using a virtual machine that came with ros indigo, and I failed to install ros-indigo-opencv2 because it doesn't exist anymore, but I got vision-opencv, opencv3 and vc-bridge.

viki@c3po:~/workspace/ros/cvg_ardrone2_ibvs$ catkin_make Base path: /home/viki/workspace/ros/cvg_ardrone2_ibvs Source space: /home/viki/workspace/ros/cvg_ardrone2_ibvs/src Build space: /home/viki/workspace/ros/cvg_ardrone2_ibvs/build Devel space: /home/viki/workspace/ros/cvg_ardrone2_ibvs/devel Install space: /home/viki/workspace/ros/cvg_ardrone2_ibvs/install WARNING: Package name "droneOpenTLDTranslatorROS" does not follow the naming conventions. It should start with a lower case letter and only contain lower case letters, digits and underscores. WARNING: Package name "droneInterfaceROSModule" does not follow the naming conventions. It should start with a lower case letter and only contain lower case letters, digits and underscores. WARNING: Package name "driverParrotARDroneROSModule" does not follow the naming conventions. It should start with a lower case letter and only contain lower case letters, digits and underscores. WARNING: Package name "droneTrackerEyeROSModule" does not follow the naming conventions. It should start with a lower case letter and only contain lower case letters, digits and underscores. WARNING: Package name "droneIBVSControllerROSModule" does not follow the naming conventions. It should start with a lower case letter and only contain lower case letters, digits and underscores. WARNING: Package name "droneIBVSController" does not follow the naming conventions. It should start with a lower case letter and only contain lower case letters, digits and underscores. WARNING: Package name "droneModuleInterfaceROS" does not follow the naming conventions. It should start with a lower case letter and only contain lower case letters, digits and underscores. WARNING: Package name "droneModuleROS" does not follow the naming conventions. It should start with a lower case letter and only contain lower case letters, digits and underscores. WARNING: Package name "droneMsgsROS" does not follow the naming conventions. It should start with a lower case letter and only contain lower case letters, digits and underscores. WARNING: Package name "referenceFrames" does not follow the naming conventions. It should start with a lower case letter and only contain lower case letters, digits and underscores. WARNING: Package name "droneLoggerROSModule" does not follow the naming conventions. It should start with a lower case letter and only contain lower case letters, digits and underscores. WARNING: Package name "lib_cvgloggerROS" does not follow the naming conventions. It should start with a lower case letter and only contain lower case letters, digits and underscores. WARNING: Package name "droneEKFStateEstimator" does not follow the naming conventions. It should start with a lower case letter and only contain lower case letters, digits and underscores. WARNING: Package name "droneEKFStateEstimatorROSModule" does not follow the naming conventions. It should start with a lower case letter and only contain lower case letters, digits and underscores.

Running command: "make cmake_check_build_system" in "/home/viki/workspace/ros/cvg_ardrone2_ibvs/build"

Running command: "make -j2 -l2" in "/home/viki/workspace/ros/cvg_ardrone2_ibvs/build"

[ 0%] Built target _catkin_empty_exported_target [ 0%] Built target geometry_msgs_generate_messages_py [ 0%] Built target _droneMsgsROS_generate_messages_check_deps_imageFeaturesIBVS [ 0%] Built target sensor_msgs_generate_messages_py [ 0%] Built target std_msgs_generate_messages_py [ 0%] Built target std_srvs_generate_messages_py [ 0%] Built target _droneMsgsROS_generate_messages_check_deps_droneNavData [ 0%] Built target _droneMsgsROS_generate_messages_check_deps_dronePitchRollCmd [ 0%] [ 0%] Built target _droneMsgsROS_generate_messages_check_deps_askForModule Built target _droneMsgsROS_generate_messages_check_deps_droneHLCommand [ 0%] Built target _droneMsgsROS_generate_messages_check_deps_droneInfo [ 0%] Built target _droneMsgsROS_generate_messages_check_deps_ProcessDescriptorList [ 0%] Built target _droneMsgsROS_generate_messages_check_deps_droneSpeedsStamped [ 0%] Built target _droneMsgsROS_generate_messages_check_deps_droneTrajectoryRefCommand [ 0%] Built target _droneMsgsROS_generate_messages_check_deps_vectorPoints2DInt [ 0%] Built target _droneMsgsROS_generate_messages_check_deps_droneCommand [ 0%] Built target _droneMsgsROS_generate_messages_check_deps_targetInImage [ 0%] Built target _droneMsgsROS_generate_messages_check_deps_droneNavCommand [ 0%] Built target _droneMsgsROS_generate_messages_check_deps_setControlMode [ 0%] Built target _droneMsgsROS_generate_messages_check_deps_Target [ 0%] Built target _droneMsgsROS_generate_messages_check_deps_droneSensorData [ 0%] Built target _droneMsgsROS_generate_messages_check_deps_droneAltitudeCmd [ 0%] Built target _droneMsgsROS_generate_messages_check_deps_vectorTargetsInImageStamped [ 0%] Built target _droneMsgsROS_generate_messages_check_deps_droneDAltitudeCmd [ 0%] Built target _droneMsgsROS_generate_messages_check_deps_AliveSignal [ 0%] Built target _droneMsgsROS_generate_messages_check_deps_dronePositionRefCommand [ 0%] Built target _droneMsgsROS_generate_messages_check_deps_dronePoseStamped [ 0%] Built target _droneMsgsROS_generate_messages_check_deps_vector2i [ 0%] Built target _droneMsgsROS_generate_messages_check_deps_droneDYawCmd [ 0%] Built target _droneMsgsROS_generate_messages_check_deps_droneYawRefCommand [ 0%] Built target _droneMsgsROS_generate_messages_check_deps_vector2 [ 0%] Built target _droneMsgsROS_generate_messages_check_deps_VectorROIs [ 0%] Built target _droneMsgsROS_generate_messages_check_deps_droneAltitude [ 0%] Built target _droneMsgsROS_generate_messages_check_deps_dronePositionTrajectoryRefCommand [ 0%] Built target _droneMsgsROS_generate_messages_check_deps_ErrorType [ 0%] Built target _droneMsgsROS_generate_messages_check_deps_ProcessDescriptor [ 0%] Built target _droneMsgsROS_generate_messages_check_deps_imageFeaturesFeedbackIBVS [ 0%] Built target _droneMsgsROS_generate_messages_check_deps_vector2Stamped [ 0%] Built target _droneMsgsROS_generate_messages_check_deps_droneAutopilotCommand [ 0%] Built target _droneMsgsROS_generate_messages_check_deps_ProcessState [ 0%] Built target _droneMsgsROS_generate_messages_check_deps_ProcessError [ 0%] Built target _droneMsgsROS_generate_messages_check_deps_dronePositionRefCommandStamped [ 0%] Built target _droneMsgsROS_generate_messages_check_deps_dronePose [ 0%] Built target _droneMsgsROS_generate_messages_check_deps_droneMissionInfo [ 0%] Built target _droneMsgsROS_generate_messages_check_deps_setInitDroneYaw_srv_type [ 0%] Built target _droneMsgsROS_generate_messages_check_deps_droneTrajectoryControllerControlMode [ 0%] [ 0%] Built target _droneMsgsROS_generate_messages_check_deps_droneStatus Built target _droneMsgsROS_generate_messages_check_deps_BoundingBox [ 0%] Built target _droneMsgsROS_generate_messages_check_deps_droneSpeeds [ 0%] Built target _droneMsgsROS_generate_messages_check_deps_vectorPoints2D [ 0%] Built target _droneMsgsROS_generate_messages_check_deps_droneRefCommand [ 0%] Built target _droneMsgsROS_generate_messages_check_deps_battery [ 0%] Built target std_srvs_generate_messages_cpp [ 0%] Built target geometry_msgs_generate_messages_cpp [ 0%] Built target std_msgs_generate_messages_cpp [ 0%] Built target sensor_msgs_generate_messages_cpp [ 0%] Built target sensor_msgs_generate_messages_lisp [ 0%] Built target geometry_msgs_generate_messages_lisp [ 0%] Built target std_msgs_generate_messages_lisp [ 0%] Built target std_srvs_generate_messages_lisp [ 0%] Built target _tld_msgs_generate_messages_check_deps_BoundingBox [ 0%] Built target rosgraph_msgs_generate_messages_lisp [ 0%] Built target _tld_msgs_generate_messages_check_deps_Target [ 0%] Built target roscpp_generate_messages_cpp [ 0%] Built target roscpp_generate_messages_lisp [ 0%] Built target roscpp_generate_messages_py [ 0%] Built target rosgraph_msgs_generate_messages_cpp [ 0%] Built target rosgraph_msgs_generate_messages_py [ 0%] Performing update step (SVN update) for 'opentld' Updating '.': [ 0%] Built target _lib_cvgloggerROS_generate_messages_check_deps_logThisString [ 0%] Built target _ardrone_autonomy_generate_messages_check_deps_vector31 [ 0%] Built target _ardrone_autonomy_generate_messages_check_deps_navdata_pwm [ 0%] Built target _ardrone_autonomy_generate_messages_check_deps_navdata_euler_angles [ 0%] Built target _ardrone_autonomy_generate_messages_check_deps_navdata_magneto [ 0%] Built target _ardrone_autonomy_generate_messages_check_deps_navdata_adc_data_frame [ 0%] Built target _ardrone_autonomy_generate_messages_check_deps_navdata_zimmu_3000 [ 0%] Built target _ardrone_autonomy_generate_messages_check_deps_RecordEnable [ 0%] Built target _ardrone_autonomy_generate_messages_check_deps_navdata_vision [ 0%] Built target _ardrone_autonomy_generate_messages_check_deps_navdata_raw_measures [ 0%] Built target _ardrone_autonomy_generate_messages_check_deps_navdata_demo [ 0%] Built target _ardrone_autonomy_generate_messages_check_deps_vector21 [ 0%] Built target _ardrone_autonomy_generate_messages_check_deps_navdata_wifi [ 0%] Built target _ardrone_autonomy_generate_messages_check_deps_CamSelect [ 0%] Built target _ardrone_autonomy_generate_messages_check_deps_LedAnim [ 0%] Built target _ardrone_autonomy_generate_messages_check_deps_navdata_altitude [ 0%] Built target _ardrone_autonomy_generate_messages_check_deps_navdata_kalman_pressure [ 0%] Built target _ardrone_autonomy_generate_messages_check_deps_navdata_wind_speed [ 0%] Built target _ardrone_autonomy_generate_messages_check_deps_navdata_hdvideo_stream [ 0%] Built target _ardrone_autonomy_generate_messages_check_deps_navdata_watchdog [ 0%] Built target _ardrone_autonomy_generate_messages_check_deps_navdata_references At revision 172. [ 0%] Performing configure step for 'opentld' [ 0%] Built target _ardrone_autonomy_generate_messages_check_deps_navdata_video_stream -- Configuring done -- Generating done -- Build files have been written to: /home/viki/workspace/ros/cvg_ardrone2_ibvs/build/quadrotor_stack/stack/dronePerception/openTLD/ros_opentld/tld_tracker/libopentld/src/opentld [ 1%] Performing build step for 'opentld' [ 1%] Built target _ardrone_autonomy_generate_messages_check_deps_navdata_time make[3]: warning: jobserver unavailable: using -j1. Add `+' to parent make rule. [ 1%] Built target _ardrone_autonomy_generate_messages_check_deps_navdata_phys_measures [ 6%] Building CXX object src/libopentld/CMakeFiles/libopentld.dir/tld/Clustering.cpp.o [ 1%] Built target _ardrone_autonomy_generate_messages_check_deps_navdata_trackers_send [ 1%] Built target _ardrone_autonomy_generate_messages_check_deps_navdata_rc_references [ 1%] Built target _ardrone_autonomy_generate_messages_check_deps_navdata_trims [ 1%] Built target _ardrone_autonomy_generate_messages_check_deps_navdata_vision_perf [ 1%] Built target _ardrone_autonomy_generate_messages_check_deps_navdata_pressure_raw [ 1%] Built target _ardrone_autonomy_generate_messages_check_deps_FlightAnim /home/viki/workspace/ros/cvg_ardrone2_ibvs/build/quadrotor_stack/stack/dronePerception/openTLD/ros_opentld/tld_tracker/libopentld/src/opentld/src/libopentld/tld/Clustering.cpp:54:31: error: variable or field ‘calcMeanRect’ declared void void Clustering::calcMeanRect(vector * indices) ^ /home/viki/workspace/ros/cvg_ardrone2_ibvs/build/quadrotor_stack/stack/dronePerception/openTLD/ros_opentld/tld_tracker/libopentld/src/opentld/src/libopentld/tld/Clustering.cpp:54:31: error: ‘vector’ was not declared in this scope /home/viki/workspace/ros/cvg_ardrone2_ibvs/build/quadrotor_stack/stack/dronePerception/openTLD/ros_opentld/tld_tracker/libopentld/src/opentld/src/libopentld/tld/Clustering.cpp:54:31: note: suggested alternative: In file included from /usr/include/c++/4.8/vector:64:0, from /home/viki/workspace/ros/cvg_ardrone2_ibvs/build/quadrotor_stack/stack/dronePerception/openTLD/ros_opentld/tld_tracker/libopentld/src/opentld/src/libopentld/tld/Clustering.h:29, from /home/viki/workspace/ros/cvg_ardrone2_ibvs/build/quadrotor_stack/stack/dronePerception/openTLD/ros_opentld/tld_tracker/libopentld/src/opentld/src/libopentld/tld/Clustering.cpp:27: /usr/include/c++/4.8/bits/stl_vector.h:210:11: note: ‘std::vector’ class vector : protected _Vector_base<_Tp, _Alloc> ^ /home/viki/workspace/ros/cvg_ardrone2_ibvs/build/quadrotor_stack/stack/dronePerception/openTLD/ros_opentld/tld_tracker/libopentld/src/opentld/src/libopentld/tld/Clustering.cpp:54:38: error: expected primary-expression before ‘int’ void Clustering::calcMeanRect(vector * indices) ^ /home/viki/workspace/ros/cvg_ardrone2_ibvs/build/quadrotor_stack/stack/dronePerception/openTLD/ros_opentld/tldtracker/libopentld/src/opentld/src/libopentld/tld/Clustering.cpp:263:1: error: expected ‘}’ at end of input } /* namespace tld / ^ [ 1%] Built target _ardrone_autonomy_generate_messages_check_deps_navdata_gyrosoffsets make[5]: ** [src/libopentld/CMakeFiles/libopentld.dir/tld/Clustering.cpp.o] Error 1 make[4]: * [src/libopentld/CMakeFiles/libopentld.dir/all] Error 2 make[3]: * [all] Error 2 make[2]: * [quadrotor_stack/stack/dronePerception/openTLD/ros_opentld/tld_tracker/libopentld/src/opentld-stamp/opentld-build] Error 2 make[1]: * [quadrotor_stack/stack/dronePerception/openTLD/ros_opentld/tld_tracker/CMakeFiles/opentld.dir/all] Error 2 make[1]: * Waiting for unfinished jobs.... [ 1%] Built target _ardrone_autonomy_generate_messages_check_deps_Navdata make: * [all] Error 2 Invoking "make" failed

elmtam commented 8 years ago

Hi i have the same problem except mine managed to compile but on the interface i cant get the tracker to work. Have you managed to make it work? Any help is appreciated

suarez-ramon commented 8 years ago

Hello,

Can you be a little more specific ON the problem you are having.

Thanks! On Mar 12, 2016 08:13, "Muhammad Tareeq Ali Muhammad Taufiq" < notifications@github.com> wrote:

Hi i have the same problem except mine managed to compile but on the interface i cant get the tracker to work. Have you managed to make it work? Any help is appreciated

— Reply to this email directly or view it on GitHub https://github.com/Vision4UAV/cvg_ardrone2_ibvs/issues/5#issuecomment-195677469 .

elmtam commented 8 years ago

@suarez-ramon ,

Good to hear from you.

I hkeep getting this error

'' Invalid tag: environment variable 'DRONE_STACK' is not set.

Arg xml is The traceback for the exception was written to the log file

''

I think this has something to do with the environment variables but I have done that step more than 8 times to see how if I did anything wrong. I also thought it was because of the camera calibration but I have done the calibration process to the .ros folder and my drone interface can pick up images/videos.

I am just unable to get the TRACKER AND CONTROLLER to work. I cannot track any objects/ make a bounding box. Any help is appreciated.

Thank you.

elmtam commented 8 years ago

And to draganalex,

I think you have to reinstall ros for indigo. I installed it again carefully and managed to get it to work.

elmtam commented 8 years ago

screenshot from 2016-03-12 07 26 42 @dragan1alex

dragan1alex commented 8 years ago

@elmtam Thanks for the tip, but I'm not bothering anymore xD. I'm working on modifying the drone firmware to change the tag recognition function (it does a pretty good job at recognizing that orange-blue-orange tag) to recognize me instead of the tag. (basic pattern recognition, color sequence of yellow shirt-blue jeans). That way I can fiddle around with an arduino sending commands to the drone based on the (X,Y) coordinates received from the drone. It is a way better solution than carrying around a laptop.

elmtam commented 8 years ago

@suarez-ramon Also I cannot find any folders relating to the DRONE_STACK so I am unable to verify the problem. Any help is appreciated. Thank you.

suarez-ramon commented 8 years ago

Hello,

The DRONE_STACK is not a folder its a path... What happens if you run cd $DRONE_STACK ? If nothing happens or it doesn't direct you to that path then there is something wrong with the env variables. On Mar 14, 2016 03:14, "Muhammad Tareeq Ali Muhammad Taufiq" < notifications@github.com> wrote:

@suarez-ramon https://github.com/suarez-ramon Also I cannot find any folders relating to the DRONE_STACK so I am unable to verify the problem. Any help is appreciated. Thank you.

— Reply to this email directly or view it on GitHub https://github.com/Vision4UAV/cvg_ardrone2_ibvs/issues/5#issuecomment-196109214 .

elmtam commented 8 years ago

Hi @suarez-ramon ,

I have done that and there is a path for the DRONE_STACK. And there are still problems such as this screenshot from 2016-03-13 06 09 56

elmtam commented 8 years ago

@suarez-ramon

That screenshot was supposed to be my TLDGUI interface. Like i said I have images and my drone is able to stream videos but I am unable to switch the tracker on and also the controller

XiaoHeiWang commented 8 years ago

@elmtam In quadrotorstack\launchers\ardrone_launch\launch_files, the file opentld_for_IBVSController.launch and opentld_gui_for_IBVSController.launch. Change DRONE_STACK to IBVS_STACK and it will work well.

elmtam commented 8 years ago

@MarlonqWang Hi thank you. It is still occurring in some files but I will do the same for the rest and see how it goes. Appreciate it

elmtam commented 8 years ago

@MarlonqWang Hi again marlon, I would like to ask is there any reason my drone is moving very erratically? Is it because I have done the camera calibrations wrong?