-
Notifications
You must be signed in to change notification settings - Fork 622
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
ros2 - getting error during ov_msckf package building #403
Comments
Likely you ran out of memory as cc1plus killed itself. Try building again,
or each package by itself (e.g. ov_core first, then ov_msckf).
…On Wed, Nov 29, 2023 at 1:58 AM Omer Faruk Edemen ***@***.***> wrote:
hello,
ubuntu 22.04
6.2.0-37-generic
ROS2 humble
in installation step, after this command colcon build --event-handlers
console_cohesion+ --packages-select ov_core ov_init ov_msckf ov_eval # ROS2
with verbose output
While ov_msckf was building the computer was freezing and after couple of
tries I got the following output
[Processing: ov_msckf]
[Processing: ov_msckf]
[Processing: ov_msckf]
--- output: ov_msckf
[ 4%] Building CXX object
CMakeFiles/ov_msckf_lib.dir/src/sim/Simulator.cpp.o
[ 13%] Building CXX object
CMakeFiles/ov_msckf_lib.dir/src/core/VioManagerHelper.cpp.o
[ 13%] Building CXX object
CMakeFiles/ov_msckf_lib.dir/src/state/Propagator.cpp.o
[ 22%] Building CXX object
CMakeFiles/ov_msckf_lib.dir/src/core/VioManager.cpp.o
[ 22%] Building CXX object
CMakeFiles/ov_msckf_lib.dir/src/state/StateHelper.cpp.o
[ 27%] Building CXX object
CMakeFiles/ov_msckf_lib.dir/src/update/UpdaterHelper.cpp.o
[ 45%] Building CXX object
CMakeFiles/ov_msckf_lib.dir/src/update/UpdaterSLAM.cpp.o
[ 45%] Building CXX object
CMakeFiles/ov_msckf_lib.dir/src/ros/ROSVisualizerHelper.cpp.o
[ 45%] Building CXX object
CMakeFiles/ov_msckf_lib.dir/src/update/UpdaterMSCKF.cpp.o
[ 45%] Building CXX object
CMakeFiles/ov_msckf_lib.dir/src/update/UpdaterZeroVelocity.cpp.o
[ 50%] Building CXX object
CMakeFiles/ov_msckf_lib.dir/src/ros/ROS2Visualizer.cpp.o
In file included from
/home/omer/Desktop/source_code/vslam_ros2/src/open_vins/ov_msckf/src/ros/ROSVisualizerHelper.h:37,
from
/home/omer/Desktop/source_code/vslam_ros2/src/open_vins/ov_msckf/src/ros/ROSVisualizerHelper.cpp:22:
/opt/ros/humble/include/tf2_geometry_msgs/tf2_geometry_msgs/tf2_geometry_msgs.h:35:2:
warning: #warning This header is obsolete, please include
tf2_geometry_msgs/tf2_geometry_msgs.hpp instead [-Wcpp]
35 | #warning This header is obsolete, please include
tf2_geometry_msgs/tf2_geometry_msgs.hpp instead
| ^~~~~~~
In file included from
/home/omer/Desktop/source_code/vslam_ros2/src/open_vins/ov_msckf/src/ros/ROS2Visualizer.h:45,
from
/home/omer/Desktop/source_code/vslam_ros2/src/open_vins/ov_msckf/src/ros/ROS2Visualizer.cpp:22:
/opt/ros/humble/include/tf2_geometry_msgs/tf2_geometry_msgs/tf2_geometry_msgs.h:35:2:
warning: #warning This header is obsolete, please include
tf2_geometry_msgs/tf2_geometry_msgs.hpp instead [-Wcpp]
35 | #warning This header is obsolete, please include
tf2_geometry_msgs/tf2_geometry_msgs.hpp instead
| ^~~~~~~
In file included from
/home/omer/Desktop/source_code/vslam_ros2/src/open_vins/ov_msckf/src/ros/ROS2Visualizer.h:28,
from
/home/omer/Desktop/source_code/vslam_ros2/src/open_vins/ov_msckf/src/ros/ROS2Visualizer.cpp:22:
/opt/ros/humble/include/image_transport/image_transport/image_transport.h:32:89:
note: ‘#pragma message: Warning: This header is deprecated. Use
'image_transport.hpp' instead’
32 | #pragma message ("Warning: This header is deprecated. Use
'image_transport.hpp' instead")
| ^
c++: fatal error: Killed signal terminated program cc1plus
compilation terminated.
gmake[2]: *** [CMakeFiles/ov_msckf_lib.dir/build.make:202:
CMakeFiles/ov_msckf_lib.dir/src/update/UpdaterSLAM.cpp.o] Error 1
gmake[2]: *** Waiting for unfinished jobs....
c++: fatal error: Killed signal terminated program cc1plus
compilation terminated.
gmake[2]: *** [CMakeFiles/ov_msckf_lib.dir/build.make:146:
CMakeFiles/ov_msckf_lib.dir/src/core/VioManager.cpp.o] Error 1
gmake[1]: *** [CMakeFiles/Makefile2:145: CMakeFiles/ov_msckf_lib.dir/all]
Error 2
gmake: *** [Makefile:146: all] Error 2 --- stderr: ov_msckf
In file included from
/home/omer/Desktop/source_code/vslam_ros2/src/open_vins/ov_msckf/src/ros/ROSVisualizerHelper.h:37,
from
/home/omer/Desktop/source_code/vslam_ros2/src/open_vins/ov_msckf/src/ros/ROSVisualizerHelper.cpp:22:
/opt/ros/humble/include/tf2_geometry_msgs/tf2_geometry_msgs/tf2_geometry_msgs.h:35:2:
warning: #warning This header is obsolete, please include
tf2_geometry_msgs/tf2_geometry_msgs.hpp instead [-Wcpp]
35 | #warning This header is obsolete, please include
tf2_geometry_msgs/tf2_geometry_msgs.hpp instead
| ^~~~~~~
In file included from
/home/omer/Desktop/source_code/vslam_ros2/src/open_vins/ov_msckf/src/ros/ROS2Visualizer.h:45,
from
/home/omer/Desktop/source_code/vslam_ros2/src/open_vins/ov_msckf/src/ros/ROS2Visualizer.cpp:22:
/opt/ros/humble/include/tf2_geometry_msgs/tf2_geometry_msgs/tf2_geometry_msgs.h:35:2:
warning: #warning This header is obsolete, please include
tf2_geometry_msgs/tf2_geometry_msgs.hpp instead [-Wcpp]
35 | #warning This header is obsolete, please include
tf2_geometry_msgs/tf2_geometry_msgs.hpp instead
| ^~~~~~~
In file included from
/home/omer/Desktop/source_code/vslam_ros2/src/open_vins/ov_msckf/src/ros/ROS2Visualizer.h:28,
from
/home/omer/Desktop/source_code/vslam_ros2/src/open_vins/ov_msckf/src/ros/ROS2Visualizer.cpp:22:
/opt/ros/humble/include/image_transport/image_transport/image_transport.h:32:89:
note: ‘#pragma message: Warning: This header is deprecated. Use
'image_transport.hpp' instead’
32 | #pragma message ("Warning: This header is deprecated. Use
'image_transport.hpp' instead")
| ^
c++: fatal error: Killed signal terminated program cc1plus
compilation terminated.
gmake[2]: *** [CMakeFiles/ov_msckf_lib.dir/build.make:202:
CMakeFiles/ov_msckf_lib.dir/src/update/UpdaterSLAM.cpp.o] Error 1
gmake[2]: *** Waiting for unfinished jobs....
c++: fatal error: Killed signal terminated program cc1plus
compilation terminated.
gmake[2]: *** [CMakeFiles/ov_msckf_lib.dir/build.make:146:
CMakeFiles/ov_msckf_lib.dir/src/core/VioManager.cpp.o] Error 1
gmake[1]: *** [CMakeFiles/Makefile2:145: CMakeFiles/ov_msckf_lib.dir/all]
Error 2
gmake: *** [Makefile:146: all] Error 2
Failed <<< ov_msckf [1min 55s, exited with code 2]
Summary: 3 packages finished [1min 58s]
1 package failed: ov_msckf
1 package had stderr output: ov_msckf
I ve change some lines in /open_vins/ov_msckf/src/ros/ROS2Visualizer.h
28 #include <image_transport/image_transport.hpp>
45 #include <tf2_geometry_msgs/tf2_geometry_msgs.hpp>
and open_vins/ov_msckf/src/ros/ROSVisualizerHelper.h
37 #include <tf2_geometry_msgs/tf2_geometry_msgs.hpp>
after these changes the problem was solved
—
Reply to this email directly, view it on GitHub
<#403>, or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAQ6TYU2IWOL3CR2T5RBQXDYG4BNHAVCNFSM6AAAAAA77FMIRKVHI2DSMVQWIX3LMV43ASLTON2WKOZSGAYTMMRRHEYTGNI>
.
You are receiving this because you are subscribed to this thread.Message
ID: ***@***.***>
|
Thanks for the reply |
What exactly did you change to get it to compile?
What you have posted are just warnings and won't prevent compilation.
…On Wed, Nov 29, 2023 at 8:38 PM Omer Faruk Edemen ***@***.***> wrote:
Thanks for the reply
I tried many times actually even I tried to build packages by one by but
It kept up giving this error. But I solved this issue by changing some
lines that I mentioned above
—
Reply to this email directly, view it on GitHub
<#403 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAQ6TYQAMAT42JGXDJVLD7LYHAETJAVCNFSM6AAAAAA77FMIRKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQMZTGA4TMMRUGM>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
I got same issue again and this time changing these lines didn't work. So i disable grapical.target to do that or you can disable your graphic with press ctrl+alt+F3 and go to tty terminal (or F2 you can search what it is for your system) and try to build. it works for me in pc. To exit from tty terminal press ctrl+alt+F2 (or F3) |
hello,
ubuntu 22.04
6.2.0-37-generic
ROS2 humble
in installation step, after this command
colcon build --event-handlers console_cohesion+ --packages-select ov_core ov_init ov_msckf ov_eval # ROS2 with verbose output
While ov_msckf was building the computer was freezing and after couple of tries I got the following output
Summary: 3 packages finished [1min 58s]
1 package failed: ov_msckf
1 package had stderr output: ov_msckf
I ve change some lines in /open_vins/ov_msckf/src/ros/ROS2Visualizer.h
28 #include <image_transport/image_transport.hpp>
45 #include <tf2_geometry_msgs/tf2_geometry_msgs.hpp>
and open_vins/ov_msckf/src/ros/ROSVisualizerHelper.h
37 #include <tf2_geometry_msgs/tf2_geometry_msgs.hpp>
after these changes the problem was solved
The text was updated successfully, but these errors were encountered: