Git Product home page Git Product logo

Comments (9)

welcome avatar welcome commented on July 19, 2024

Thanks for opening your first issue here! Make sure that no other issues on the same topic have already been opened!

from bebops.

gsilano avatar gsilano commented on July 19, 2024

Hi! We need to understand if the bebop_autonomy dependencies are causing the issue. Please, try excluding the package from the build. Simply, removing it from the folder containing all the ROS packages. Hence, compile and a simple example file. You should be able to install and use BebopS even without bebop_autonomy.

from bebops.

EricDiazR avatar EricDiazR commented on July 19, 2024

While using rosdep i get the following error message:
~/catkin_ws$ rosdep install --from-paths src -i

ERROR: the following packages/stacks could not have their rosdep keys resolved
to system dependencies:
bebop_simulator: Cannot locate rosdep definition for [bebop_driver]

And when trying to compile the catkin_ws i get the following (using catkin build)
Errors << rotors_gazebo_plugins:make /home/eric/catkin_ws/logs/rotors_gazebo_plugins/build.make.000.log
MagneticField.proto: warning: Import quaternion.proto but not used.
/home/eric/catkin_ws/src/rotors_simulator/rotors_gazebo_plugins/src/gazebo_odometry_plugin.cpp: In member function ‘virtual void gazebo::GazeboOdometryPlugin::Load(gazebo::physics::ModelPtr, sdf::ElementPtr)’:
/home/eric/catkin_ws/src/rotors_simulator/rotors_gazebo_plugins/src/gazebo_odometry_plugin.cpp:94:48: error: ‘CV_LOAD_IMAGE_GRAYSCALE’ was not declared in this scope
covariance_image_ = cv::imread(image_name, CV_LOAD_IMAGE_GRAYSCALE);
^~~~~~~~~~~~~~~~~~~~~~~
make[2]: *** [CMakeFiles/rotors_gazebo_odometry_plugin.dir/src/gazebo_odometry_plugin.cpp.o] Error 1
make[1]: *** [CMakeFiles/rotors_gazebo_odometry_plugin.dir/all] Error 2
make[1]: *** Se espera a que terminen otras tareas....
make: *** [all] Error 2
cd /home/eric/catkin_ws/build/rotors_gazebo_plugins; catkin build --get-env rotors_gazebo_plugins | catkin env -si /usr/bin/make --jobserver-fds=6,7 -j; cd -
...............................................................................
Failed << rotors_gazebo_plugins:make [ Exited with code 2 ]
Failed <<< rotors_gazebo_plugins [ 3 minutes and 20.7 seconds ]
Abandoned <<< bebop_simulator [ Unrelated job failed ]
Abandoned <<< rotors_gazebo [ Unrelated job failed ]
[build] Summary: 9 of 12 packages succeeded.
[build] Ignored: 2 packages were skipped or are blacklisted.
[build] Warnings: 2 packages succeeded with warnings.
[build] Abandoned: 2 packages were abandoned.
[build] Failed: 1 packages failed.
[build] Runtime: 6 minutes and 19.5 seconds total.

After clone the official bebop_autonomy package, rosdep gives no error.

But i still get the previous error

Errors << rotors_gazebo_plugins:make /home/eric/catkin_ws/logs/rotors_gazebo_plugins/build.make.001.log
/home/eric/catkin_ws/src/rotors_simulator/rotors_gazebo_plugins/src/gazebo_odometry_plugin.cpp: In member function ‘virtual void gazebo::GazeboOdometryPlugin::Load(gazebo::physics::ModelPtr, sdf::ElementPtr)’:
/home/eric/catkin_ws/src/rotors_simulator/rotors_gazebo_plugins/src/gazebo_odometry_plugin.cpp:94:48: error: ‘CV_LOAD_IMAGE_GRAYSCALE’ was not declared in this scope
covariance_image_ = cv::imread(image_name, CV_LOAD_IMAGE_GRAYSCALE);
^~~~~~~~~~~~~~~~~~~~~~~
make[2]: *** [CMakeFiles/rotors_gazebo_odometry_plugin.dir/src/gazebo_odometry_plugin.cpp.o] Error 1
make[1]: *** [CMakeFiles/rotors_gazebo_odometry_plugin.dir/all] Error 2
make[1]: *** Se espera a que terminen otras tareas....
make: *** [all] Error 2
cd /home/eric/catkin_ws/build/rotors_gazebo_plugins; catkin build --get-env rotors_gazebo_plugins | catkin env -si /usr/bin/make --jobserver-fds=6,7 -j; cd -
...............................................................................
Failed << rotors_gazebo_plugins:make [ Exited with code 2 ]
Failed <<< rotors_gazebo_plugins [ 20.2 seconds ]
Abandoned <<< bebop_tools [ Unrelated job failed ]
Abandoned <<< bebop_simulator [ Unrelated job failed ]
Abandoned <<< rotors_gazebo [ Unrelated job failed ]

from bebops.

EricDiazR avatar EricDiazR commented on July 19, 2024

And if i use catkin_make instead of catkin build, i get this error (the same as the first comment of this issue):

-- Eigen found (include: /usr/include/eigen3)
CMake Error at BebopS/CMakeLists.txt:73 (add_executable):
add_executable cannot create target "hovering_example" because another
target with the same name already exists. The existing target is an
executable created in source directory
"/home/eric/catkin_ws/src/rotors_simulator/rotors_gazebo". See
documentation for policy CMP0002 for more details.

CMake Error at BebopS/CMakeLists.txt:74 (target_link_libraries):
Attempt to add link library "/opt/ros/melodic/lib/libroscpp.so" to target
"hovering_example" which is not built in this directory.

This is allowed only when policy CMP0079 is set to NEW.

-- Configuring incomplete, errors occurred!
See also "/home/eric/catkin_ws/build/CMakeFiles/CMakeOutput.log".
See also "/home/eric/catkin_ws/build/CMakeFiles/CMakeError.log".
Invoking "cmake" failed

from bebops.

gsilano avatar gsilano commented on July 19, 2024

Ok, got it. Remove bebop_autonomy from the src folder. Then, run again the sudo rosdep command, and finally catkin build. It should work.

from bebops.

SarahMars avatar SarahMars commented on July 19, 2024

Hello, I had the exact same error as @EricDiazR .
In my case, simply the version of OpenCV was different.
I suppose the rotors_simulator code was written with OpenCV version lower than 3.0. (This might be useful: 'CV_LOAD_IMAGE_GRAYSCALE' is not defined{PY})
In my environment, I use ROS melodic + Ubuntu 18.04 + Gazebo 9 with OpenCV v3.2.

I had to;

Modifying these solved the issue and I can compile packages now.

@gsilano , original package with the latest version is doing the same thing. Please consider git pull from the original repository.
https://github.com/ethz-asl/rotors_simulator/blob/c1d4ef987b5b903fee0262524428b1b98c00a660/rotors_gazebo_plugins/src/gazebo_odometry_plugin.cpp

GitHub
RotorS is a UAV gazebo simulator. Contribute to gsilano/rotors_simulator development by creating an account on GitHub.
GitHub
RotorS is a UAV gazebo simulator. Contribute to ethz-asl/rotors_simulator development by creating an account on GitHub.
GitHub
RotorS is a UAV gazebo simulator. Contribute to gsilano/rotors_simulator development by creating an account on GitHub.
GitHub
RotorS is a UAV gazebo simulator. Contribute to ethz-asl/rotors_simulator development by creating an account on GitHub.

from bebops.

gsilano avatar gsilano commented on July 19, 2024

Hi @SarahMars! Thanks for the info. I just created a new branch in my RotorS fork. I will update the README.md file with the instructions.

from bebops.

stale avatar stale commented on July 19, 2024

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

from bebops.

gsilano avatar gsilano commented on July 19, 2024

Closed for inactivity

from bebops.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.