-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Windows fixes from robostack #5333
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
base: jazzy
Are you sure you want to change the base?
Changes from all commits
c4345d7
c4cb7aa
a9c44c7
5f71ec4
0842088
3193252
bf4590a
d28feff
8b10ded
e98d428
9b57713
ac8a164
4c105ce
8170955
5fa9173
a949e36
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -28,7 +28,6 @@ | |
#include "nav2_costmap_2d/costmap_2d.hpp" | ||
#include "nav2_core/planner_exceptions.hpp" | ||
|
||
#include "nav2_smac_planner/thirdparty/robin_hood.h" | ||
#include "nav2_smac_planner/analytic_expansion.hpp" | ||
#include "nav2_smac_planner/node_2d.hpp" | ||
#include "nav2_smac_planner/node_hybrid.hpp" | ||
|
@@ -37,6 +36,13 @@ | |
#include "nav2_smac_planner/types.hpp" | ||
#include "nav2_smac_planner/constants.hpp" | ||
|
||
#ifdef _MSC_VER | ||
#define SELECTED_UNORDERED_MAP std::unordered_map | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This is significantly slower than the robin hood hashing that we use in the thirdparty directory. Would a major reduction in performance for windows users really be preferable? I think the print out you showed is mostly warnings which can probably be silenced. We have it in the Nav2 codebase so that can be modified and resolved, no? |
||
#else | ||
#include "nav2_smac_planner/thirdparty/robin_hood.h" | ||
#define SELECTED_UNORDERED_MAP robin_hood::unordered_node_map | ||
#endif | ||
|
||
namespace nav2_smac_planner | ||
{ | ||
|
||
|
@@ -49,7 +55,7 @@ class AStarAlgorithm | |
{ | ||
public: | ||
typedef NodeT * NodePtr; | ||
typedef robin_hood::unordered_node_map<uint64_t, NodeT> Graph; | ||
typedef SELECTED_UNORDERED_MAP<uint64_t, NodeT> Graph; | ||
typedef std::vector<NodePtr> NodeVector; | ||
typedef std::pair<float, NodeBasic<NodeT>> NodeElement; | ||
typedef typename NodeT::Coordinates Coordinates; | ||
|
Uh oh!
There was an error while loading. Please reload this page.