Comments (9)
Thanks for opening your first issue here! Make sure that no other issues on the same topic have already been opened!
from bebops.
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.
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.
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.
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.
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;
- add
#include <opencv2/imgcodecs.hpp>
- change from https://github.com/gsilano/rotors_simulator/blob/5c36c7f2affe42dbeabbf27601aeb0fc6fbc9093/rotors_gazebo_plugins/src/gazebo_odometry_plugin.cpp#L94 to
covariance_image_ = cv::imread(image_name, cv::ImreadModes::IMREAD_GRAYSCALE);
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
RotorS is a UAV gazebo simulator. Contribute to gsilano/rotors_simulator development by creating an account on GitHub.
RotorS is a UAV gazebo simulator. Contribute to ethz-asl/rotors_simulator development by creating an account on GitHub.
RotorS is a UAV gazebo simulator. Contribute to gsilano/rotors_simulator development by creating an account on GitHub.
RotorS is a UAV gazebo simulator. Contribute to ethz-asl/rotors_simulator development by creating an account on GitHub.
from bebops.
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.
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.
Closed for inactivity
from bebops.
Related Issues (20)
- The rotors don't spin HOT 14
- SITL with QGC HOT 4
- Spawning Error HOT 5
- Custom Messages in Matlab HOT 2
- UAV can't move HOT 9
- topics are incomplete HOT 3
- Running {task1_world_with_bebop,task2_world_with_bebop}.launch files HOT 5
- rostopic - command to set the trajectory HOT 1
- root@7fe7b2744d5d:~/carla-ros-bridge/catkin_ws# sudo rosdep init HOT 3
- Gzserver: symbol lookup error After Launching bebop_without_controller.launch HOT 12
- bebop_autonomy with bebopS HOT 4
- gzserver:symbol lookup error: HOT 3
- Invalid parameter and Error with Param xml HOT 3
- [ERROR] Build fails HOT 4
- Simulator not starting HOT 3
- motor_speed or cmd_vel HOT 6
- ROS noetic and gazebo 11 HOT 18
- gzserver error: Look up (when running PX4 mavros example) HOT 3
- drone simulation to live drone flight HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from bebops.