Hydra
Hydra copied to clipboard
[QUESTION] Some error with hydra_visualizer when trying to build
Not sure, maybe I am doing something wrong? Just following the instructions here: https://github.com/MIT-SPARK/Hydra-ROS/tree/main?tab=readme-ov-file#getting-started
--- stderr: hydra_visualizer
In file included from /usr/include/c++/11/functional:49,
from /home/csuser/hydra_ws/install/config_utilities/include/config_utilities/dynamic_config.h:38,
from /home/csuser/hydra_ws/src/hydra_ros/hydra_visualizer/include/hydra_visualizer/scene_graph_renderer.h:36,
from /home/csuser/hydra_ws/src/hydra_ros/hydra_visualizer/src/scene_graph_renderer.cpp:35:
/usr/include/c++/11/bits/stl_function.h: In instantiation of ‘constexpr bool std::less<_Tp>::operator()(const _Tp&, const _Tp&) const [with _Tp = spark_dsg::LayerKey]’:
/usr/include/c++/11/bits/stl_map.h:499:32: required from ‘std::map<_Key, _Tp, _Compare, _Alloc>::mapped_type& std::map<_Key, _Tp, _Compare, _Alloc>::operator[](const key_type&) [with _Key = spark_dsg::LayerKey; _Tp = long unsigned int; _Compare = std::less<spark_dsg::LayerKey>; _Alloc = std::allocator<std::pair<const spark_dsg::LayerKey, long unsigned int> >; std::map<_Key, _Tp, _Compare, _Alloc>::mapped_type = long unsigned int; std::map<_Key, _Tp, _Compare, _Alloc>::key_type = spark_dsg::LayerKey]’
/home/csuser/hydra_ws/src/hydra_ros/hydra_visualizer/src/scene_graph_renderer.cpp:224:34: required from here
/usr/include/c++/11/bits/stl_function.h:400:20: error: no match for ‘operator<’ (operand types are ‘const spark_dsg::LayerKey’ and ‘const spark_dsg::LayerKey’)
400 | { return __x < __y; }
| ~~~~^~~~~
In file included from /usr/include/c++/11/utility:70,
from /usr/include/c++/11/tuple:38,
from /usr/include/c++/11/functional:54,
from /home/csuser/hydra_ws/install/config_utilities/include/config_utilities/dynamic_config.h:38,
from /home/csuser/hydra_ws/src/hydra_ros/hydra_visualizer/include/hydra_visualizer/scene_graph_renderer.h:36,
from /home/csuser/hydra_ws/src/hydra_ros/hydra_visualizer/src/scene_graph_renderer.cpp:35:
...
I've included the entire output here: error.txt
Using Ubuntu 24.04 and ROS2 Jazzy