arshadlab / gazebo_map_creator Goto Github PK
View Code? Open in Web Editor NEWLicense: Apache License 2.0
License: Apache License 2.0
I really appreciate your effort in building this very useful tool for gazebo. However, I cannot currently get it to build on ROS 2 Iron due to some issue with how the boost libraries and ROS seem to be interacting. My error output is attached below. Did you have this issue? and if so, what did you do to solve it?
If not, what version of ROS 2 are you using so I might be able to see where the issue lies. Thank you.
gzserver: symbol lookup error: /home/madhu/work/gazebo_map_creator_ws/install/gazebo_map_creator/lib/libgazebo_map_creator.so: undefined symbol: _ZN10gazebo_ros4Node3GetEv
When I try to run gazebo -s libgazebo_map_creator.so myworld.world
command I get the above issue.
What could be the issue here?
I am following the same instructions, my distro is humble and working on Ubuntu 22.04
Here's the colcon build output:
--- stderr: gazebo_map_creator
** WARNING ** io features related to pcap will be disabled
In file included from /usr/include/boost/gil/extension/io/png/detail/read.hpp:16,
from /usr/include/boost/gil/extension/io/png/read.hpp:14,
from /usr/include/boost/gil/extension/io/png.hpp:11,
from /usr/include/boost/gil/extension/io/png/old.hpp:11,
from /home/rihanadm/robot_ws/src/gazebo_map_creator/gazebo_map_creator/src/gazbeo_map_creator.cpp:28:
/usr/include/boost/gil/io/detail/dynamic.hpp:21:8: error: redefinition of ‘struct boost::gil::detail::construct_matched_t<N>’
21 | struct construct_matched_t
| ^~~~~~~~~~~~~~~~~~~
In file included from /home/rihanadm/robot_ws/src/gazebo_map_creator/gazebo_map_creator/src/gazbeo_map_creator.cpp:27:
/usr/include/boost/gil/io/dynamic_io_new.hpp:23:8: note: previous definition of ‘struct boost::gil::detail::construct_matched_t<N>’
23 | struct construct_matched_t
| ^~~~~~~~~~~~~~~~~~~
In file included from /usr/include/boost/gil/extension/io/png/detail/read.hpp:16,
from /usr/include/boost/gil/extension/io/png/read.hpp:14,
from /usr/include/boost/gil/extension/io/png.hpp:11,
from /usr/include/boost/gil/extension/io/png/old.hpp:11,
from /home/rihanadm/robot_ws/src/gazebo_map_creator/gazebo_map_creator/src/gazbeo_map_creator.cpp:28:
/usr/include/boost/gil/io/detail/dynamic.hpp:38:8: error: redefinition of ‘struct boost::gil::detail::construct_matched_t<0>’
38 | struct construct_matched_t<0>
| ^~~~~~~~~~~~~~~~~~~~~~
In file included from /home/rihanadm/robot_ws/src/gazebo_map_creator/gazebo_map_creator/src/gazbeo_map_creator.cpp:27:
/usr/include/boost/gil/io/dynamic_io_new.hpp:40:8: note: previous definition of ‘struct boost::gil::detail::construct_matched_t<0>’
40 | struct construct_matched_t<0>
| ^~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/boost/gil/extension/io/png/detail/read.hpp:16,
from /usr/include/boost/gil/extension/io/png/read.hpp:14,
from /usr/include/boost/gil/extension/io/png.hpp:11,
from /usr/include/boost/gil/extension/io/png/old.hpp:11,
from /home/rihanadm/robot_ws/src/gazebo_map_creator/gazebo_map_creator/src/gazbeo_map_creator.cpp:28:
/usr/include/boost/gil/io/detail/dynamic.hpp:48:7: error: redefinition of ‘class boost::gil::detail::dynamic_io_fnobj<IsSupported, OpClass>’
48 | class dynamic_io_fnobj
| ^~~~~~~~~~~~~~~~
In file included from /home/rihanadm/robot_ws/src/gazebo_map_creator/gazebo_map_creator/src/gazbeo_map_creator.cpp:27:
/usr/include/boost/gil/io/dynamic_io_new.hpp:50:7: note: previous definition of ‘class boost::gil::detail::dynamic_io_fnobj<IsSupported, OpClass>’
50 | class dynamic_io_fnobj
| ^~~~~~~~~~~~~~~~
In file included from /usr/include/boost/algorithm/string/finder.hpp:23,
from /usr/include/boost/algorithm/string/find.hpp:22,
from /usr/include/boost/algorithm/string/predicate.hpp:24,
from /usr/include/pcl-1.12/pcl/io/file_io.h:47,
from /usr/include/pcl-1.12/pcl/io/pcd_io.h:45,
from /home/rihanadm/robot_ws/src/gazebo_map_creator/gazebo_map_creator/src/gazbeo_map_creator.cpp:30:
/usr/include/boost/algorithm/string/detail/finder.hpp: In member function ‘boost::iterator_range<Iterator> boost::algorithm::detail::first_finderF<SearchIteratorT, PredicateT>::operator()(ForwardIteratorT, ForwardIteratorT) const’:
/usr/include/boost/algorithm/string/detail/finder.hpp:67: note: ‘-Wmisleading-indentation’ is disabled from this point onwards, since column-tracking was disabled due to the size of the code/headers
67 | if( boost::empty(m_Search) )
|
/usr/include/boost/algorithm/string/detail/finder.hpp:67: note: adding ‘-flarge-source-files’ will allow for more column-tracking support, at the expense of compilation time and memory
At global scope:
cc1plus: note: unrecognized command-line option ‘-Wno-inconsistent-missing-override’ may have been intended to silence earlier diagnostics
gmake[2]: *** [CMakeFiles/gazebo_map_creator.dir/build.make:76: CMakeFiles/gazebo_map_creator.dir/src/gazbeo_map_creator.cpp.o] Error 1
gmake[1]: *** [CMakeFiles/Makefile2:137: CMakeFiles/gazebo_map_creator.dir/all] Error 2
gmake: *** [Makefile:146: all] Error 2
---
Failed <<< gazebo_map_creator [14.8s, exited with code 2]
Hi,
Thanks for your great work and effort! I built a simple Gazebo world, and the conversion to .pcd file was smooth. However, I found that there's no point cloud for the ground plane, which is necessary for my use case. Could you please let me know if there's any way to include ground plane into the conversion as well?
It would be nice if this package could also work with newer versions of Gazebo like Garden and Harmonic.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.