@@ -422,7 +422,7 @@ void CGraphSlamEngine<GRAPH_T>::initClass()
422
422
// query node/edge deciders for visual objects initialization
423
423
if (m_enable_visuals)
424
424
{
425
- std::lock_guard<std::mutex> m_graph_lock (m_graph_section);
425
+ std::lock_guard<std::mutex> graph_lock (m_graph_section);
426
426
m_time_logger.enter (" Visuals" );
427
427
m_node_reg->initializeVisuals ();
428
428
m_edge_reg->initializeVisuals ();
@@ -577,7 +577,7 @@ bool CGraphSlamEngine<GRAPH_T>::_execGraphSlamStep(
577
577
// NRD
578
578
bool registered_new_node;
579
579
{
580
- std::lock_guard<std::mutex> m_graph_lock (m_graph_section);
580
+ std::lock_guard<std::mutex> graph_lock (m_graph_section);
581
581
m_time_logger.enter (" node_registrar" );
582
582
registered_new_node =
583
583
m_node_reg->updateState (action, observations, observation);
@@ -604,7 +604,7 @@ bool CGraphSlamEngine<GRAPH_T>::_execGraphSlamStep(
604
604
// (root + first)
605
605
if (m_is_first_time_node_reg)
606
606
{
607
- std::lock_guard<std::mutex> m_graph_lock (m_graph_section);
607
+ std::lock_guard<std::mutex> graph_lock (m_graph_section);
608
608
m_nodeID_max = 0 ;
609
609
if (m_graph.nodeCount () != 2 )
610
610
{
@@ -633,7 +633,7 @@ bool CGraphSlamEngine<GRAPH_T>::_execGraphSlamStep(
633
633
// run this so that the ERD, GSO can be updated with the latest
634
634
// observations even when no new nodes have been added to the graph
635
635
{ // ERD
636
- std::lock_guard<std::mutex> m_graph_lock (m_graph_section);
636
+ std::lock_guard<std::mutex> graph_lock (m_graph_section);
637
637
638
638
m_time_logger.enter (" edge_registrar" );
639
639
m_edge_reg->updateState (action, observations, observation);
@@ -643,7 +643,7 @@ bool CGraphSlamEngine<GRAPH_T>::_execGraphSlamStep(
643
643
registered_new_node, " EdgeRegistrationDecider" );
644
644
645
645
{ // GSO
646
- std::lock_guard<std::mutex> m_graph_lock (m_graph_section);
646
+ std::lock_guard<std::mutex> graph_lock (m_graph_section);
647
647
648
648
m_time_logger.enter (" optimizer" );
649
649
m_optimizer->updateState (action, observations, observation);
@@ -698,7 +698,7 @@ bool CGraphSlamEngine<GRAPH_T>::_execGraphSlamStep(
698
698
699
699
if (m_enable_visuals && m_visualize_map)
700
700
{
701
- std::lock_guard<std::mutex> m_graph_lock (m_graph_section);
701
+ std::lock_guard<std::mutex> graph_lock (m_graph_section);
702
702
// bool full_update = m_optimizer->justFullyOptimizedGraph();
703
703
bool full_update = true ;
704
704
this ->updateMapVisualization (m_nodes_to_laser_scans2D, full_update);
@@ -877,7 +877,7 @@ template <class GRAPH_T>
877
877
void CGraphSlamEngine<GRAPH_T>::execDijkstraNodesEstimation()
878
878
{
879
879
{
880
- std::lock_guard<std::mutex> m_graph_lock (m_graph_section);
880
+ std::lock_guard<std::mutex> graph_lock (m_graph_section);
881
881
m_time_logger.enter (" dijkstra_nodes_estimation" );
882
882
m_graph.dijkstra_nodes_estimate ();
883
883
m_time_logger.leave (" dijkstra_nodes_estimation" );
@@ -891,7 +891,7 @@ void CGraphSlamEngine<GRAPH_T>::monitorNodeRegistration(
891
891
MRPT_START;
892
892
using namespace mrpt ;
893
893
894
- std::lock_guard<std::mutex> m_graph_lock (m_graph_section);
894
+ std::lock_guard<std::mutex> graph_lock (m_graph_section);
895
895
size_t listed_nodeCount =
896
896
(m_nodeID_max == INVALID_NODEID ? 0 : m_nodeID_max + 1 );
897
897
@@ -980,7 +980,7 @@ inline void CGraphSlamEngine<GRAPH_T>::computeMap() const
980
980
using namespace mrpt ::maps;
981
981
using namespace mrpt ::poses;
982
982
983
- std::lock_guard<std::mutex> m_graph_lock (m_graph_section);
983
+ std::lock_guard<std::mutex> graph_lock (m_graph_section);
984
984
985
985
if (!constraint_t::is_3D ())
986
986
{ // 2D Poses
@@ -1222,7 +1222,7 @@ template <class GRAPH_T>
1222
1222
void CGraphSlamEngine<GRAPH_T>::updateAllVisuals()
1223
1223
{
1224
1224
MRPT_START;
1225
- std::lock_guard<std::mutex> m_graph_lock (m_graph_section);
1225
+ std::lock_guard<std::mutex> graph_lock (m_graph_section);
1226
1226
m_time_logger.enter (" Visuals" );
1227
1227
1228
1228
m_node_reg->updateVisuals ();
@@ -1737,7 +1737,7 @@ void CGraphSlamEngine<GRAPH_T>::toggleMapVisualization()
1737
1737
// get total number of nodes
1738
1738
int num_of_nodes;
1739
1739
{
1740
- std::lock_guard<std::mutex> m_graph_lock (m_graph_section);
1740
+ std::lock_guard<std::mutex> graph_lock (m_graph_section);
1741
1741
num_of_nodes = m_graph.nodeCount ();
1742
1742
}
1743
1743
@@ -2262,7 +2262,7 @@ void CGraphSlamEngine<GRAPH_T>::updateEstimatedTrajectoryVisualization(
2262
2262
ASSERTDEB_ (m_enable_visuals);
2263
2263
using namespace mrpt ::opengl;
2264
2264
2265
- std::lock_guard<std::mutex> m_graph_lock (m_graph_section);
2265
+ std::lock_guard<std::mutex> graph_lock (m_graph_section);
2266
2266
ASSERTDEB_ (m_graph.nodeCount () != 0 );
2267
2267
2268
2268
COpenGLScene::Ptr scene = m_win->get3DSceneAndLock ();
@@ -2744,7 +2744,7 @@ void CGraphSlamEngine<GRAPH_T>::generateReportFiles(
2744
2744
2745
2745
2746
2746
MRPT_LOG_INFO_STREAM (" Generating detailed class report..." );
2747
- std::lock_guard<std::mutex> m_graph_lock (m_graph_section);
2747
+ std::lock_guard<std::mutex> graph_lock (m_graph_section);
2748
2748
2749
2749
std::string report_str;
2750
2750
std::string fname;
0 commit comments