Skip to content
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

mrpt_graphslam_2d:Add to ini config files, instructions #23

Merged
merged 14 commits into from
Jun 13, 2017
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
mrpt-graphslam_2d:Add using directives when needed
  • Loading branch information
bergercookie committed May 29, 2017
commit e76fb1abca2153ecd845cc7c0e89974b50417d92
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ class CGraphSlamEngine_MR : public CGraphSlamEngine_ROS<GRAPH_T>
typedef typename mrpt::graphslam::detail::TNodeProps<GRAPH_T> node_props_t;
typedef mrpt::graphslam::TUncertaintyPath<GRAPH_T> path_t;
typedef std::vector<path_t> paths_t;
typedef CEdgeRegistrationDecider_MR<GRAPH_T> edge_reg_mr_t;
typedef mrpt::graphslam::deciders::CEdgeRegistrationDecider_MR<GRAPH_T> edge_reg_mr_t;

CGraphSlamEngine_MR(
ros::NodeHandle* nh,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -466,6 +466,7 @@ template<class GRAPH_T>
void CGraphSlamEngine_MR<GRAPH_T>::initClass() {
using namespace mrpt::graphslam;
using namespace mrpt::utils;
using namespace std;

// initialization of topic namespace names
// TODO - put these into seperate method
Expand Down Expand Up @@ -1394,6 +1395,7 @@ computeGridMap() const {
using namespace mrpt::utils;
using namespace mrpt;
using namespace mrpt::math;
using namespace std;

gridmap_cached->clear();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -193,6 +193,7 @@ void CGraphSlamHandler_ROS<GRAPH_T>::initEngine_MR() {
template<class GRAPH_T>
void CGraphSlamHandler_ROS<GRAPH_T>::getROSParameters(std::string* str_out) {
using namespace mrpt::utils;
using namespace std;

ASSERT_(str_out);

Expand Down Expand Up @@ -256,6 +257,7 @@ std::string CGraphSlamHandler_ROS<GRAPH_T>::getParamsAsString() {

template<class GRAPH_T>
void CGraphSlamHandler_ROS<GRAPH_T>::printParams() {
using namespace std;
parent_t::printParams();
cout << this->getParamsAsString() << endl;
}
Expand Down Expand Up @@ -430,6 +432,8 @@ void CGraphSlamHandler_ROS<GRAPH_T>::setupSrvs() {
template<class GRAPH_T>
bool CGraphSlamHandler_ROS<GRAPH_T>::usePublishersBroadcasters() {
using namespace mrpt::utils;
using namespace std;

MRPT_START;
bool ret_val = true;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ void CLoopCloserERD_MR<GRAPH_T>::fetchNodeIDsForScanMatching(

size_t fetched_nodeIDs = 0;
for (int nodeID_i = static_cast<int>(curr_nodeID)-1;
((fetched_nodeIDs <= this->m_laser_params.prev_nodes_for_ICP) &&
((fetched_nodeIDs <= this->m_prev_nodes_for_ICP) &&
(nodeID_i >= 0));
--nodeID_i) {
bool is_own = this->m_engine->isOwnNodeID(nodeID_i);
Expand Down