-
Notifications
You must be signed in to change notification settings - Fork 69
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
Support newer GCC versions and minor cleanup #57
Changes from all commits
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 |
---|---|---|
|
@@ -18,9 +18,7 @@ class ReferenceFrameNode : public Node { | |
ReferenceFrameNode(const NodeId& node_id, const Config& config) | ||
: Node(node_id, config), config_(config) {} | ||
|
||
const FrameId getReferenceFrameId() const { | ||
return config_.reference_frame_id; | ||
} | ||
FrameId getReferenceFrameId() const { return config_.reference_frame_id; } | ||
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. Hmm I see the recommendation on returning const copies has changed to "don't do it" Thanks for fixing this. |
||
|
||
private: | ||
Config config_; | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -27,11 +27,11 @@ class VoxgraphSubmapCollection | |
explicit VoxgraphSubmapCollection(VoxgraphSubmap::Config submap_config, | ||
bool verbose = false) | ||
: SubmapCollection(submap_config), | ||
submap_creation_interval_(20), | ||
verbose_(verbose) {} | ||
verbose_(verbose), | ||
submap_creation_interval_(20) {} | ||
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. I would usually make the default a constexpr somewhere. |
||
|
||
void setSubmapCreationInterval(ros::Duration submap_creation_interval) { | ||
submap_creation_interval_ = std::move(submap_creation_interval); | ||
submap_creation_interval_ = submap_creation_interval; | ||
} | ||
|
||
bool shouldCreateNewSubmap(const ros::Time& current_time); | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,6 +3,7 @@ | |
#include <string> | ||
#include <vector> | ||
|
||
#include <boost/filesystem.hpp> | ||
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. One day we will get stl filesystem. sigh |
||
#include <cblox/core/submap_collection.h> | ||
#include <cblox/io/submap_io.h> | ||
#include <cblox/utils/quat_transformation_protobuf_utils.h> | ||
|
@@ -11,7 +12,6 @@ | |
#include <voxblox/io/layer_io.h> | ||
#include <voxblox_ros/ptcloud_vis.h> | ||
#include <voxblox_ros/ros_params.h> | ||
#include <boost/filesystem.hpp> | ||
|
||
#include "voxgraph/frontend/submap_collection/voxgraph_submap.h" | ||
#include "voxgraph/tools/submap_registration_helper.h" | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Out of interest what's the motivation for
DEIGEN_INITIALIZE_MATRICES_BY_NAN
? Is it catch uninitialized matrix access?