Skip to content

Commit 5336573

Browse files
committed
Fix more local variable names
1 parent f9ee52d commit 5336573

File tree

2 files changed

+14
-14
lines changed

2 files changed

+14
-14
lines changed

libs/graphslam/include/mrpt/graphslam/CGraphSlamEngine_impl.h

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -422,7 +422,7 @@ void CGraphSlamEngine<GRAPH_T>::initClass()
422422
// query node/edge deciders for visual objects initialization
423423
if (m_enable_visuals)
424424
{
425-
std::lock_guard<std::mutex> m_graph_lock(m_graph_section);
425+
std::lock_guard<std::mutex> graph_lock(m_graph_section);
426426
m_time_logger.enter("Visuals");
427427
m_node_reg->initializeVisuals();
428428
m_edge_reg->initializeVisuals();
@@ -577,7 +577,7 @@ bool CGraphSlamEngine<GRAPH_T>::_execGraphSlamStep(
577577
// NRD
578578
bool registered_new_node;
579579
{
580-
std::lock_guard<std::mutex> m_graph_lock(m_graph_section);
580+
std::lock_guard<std::mutex> graph_lock(m_graph_section);
581581
m_time_logger.enter("node_registrar");
582582
registered_new_node =
583583
m_node_reg->updateState(action, observations, observation);
@@ -604,7 +604,7 @@ bool CGraphSlamEngine<GRAPH_T>::_execGraphSlamStep(
604604
// (root + first)
605605
if (m_is_first_time_node_reg)
606606
{
607-
std::lock_guard<std::mutex> m_graph_lock(m_graph_section);
607+
std::lock_guard<std::mutex> graph_lock(m_graph_section);
608608
m_nodeID_max = 0;
609609
if (m_graph.nodeCount() != 2)
610610
{
@@ -633,7 +633,7 @@ bool CGraphSlamEngine<GRAPH_T>::_execGraphSlamStep(
633633
// run this so that the ERD, GSO can be updated with the latest
634634
// observations even when no new nodes have been added to the graph
635635
{ // ERD
636-
std::lock_guard<std::mutex> m_graph_lock(m_graph_section);
636+
std::lock_guard<std::mutex> graph_lock(m_graph_section);
637637

638638
m_time_logger.enter("edge_registrar");
639639
m_edge_reg->updateState(action, observations, observation);
@@ -643,7 +643,7 @@ bool CGraphSlamEngine<GRAPH_T>::_execGraphSlamStep(
643643
registered_new_node, "EdgeRegistrationDecider");
644644

645645
{ // GSO
646-
std::lock_guard<std::mutex> m_graph_lock(m_graph_section);
646+
std::lock_guard<std::mutex> graph_lock(m_graph_section);
647647

648648
m_time_logger.enter("optimizer");
649649
m_optimizer->updateState(action, observations, observation);
@@ -698,7 +698,7 @@ bool CGraphSlamEngine<GRAPH_T>::_execGraphSlamStep(
698698

699699
if (m_enable_visuals && m_visualize_map)
700700
{
701-
std::lock_guard<std::mutex> m_graph_lock(m_graph_section);
701+
std::lock_guard<std::mutex> graph_lock(m_graph_section);
702702
// bool full_update = m_optimizer->justFullyOptimizedGraph();
703703
bool full_update = true;
704704
this->updateMapVisualization(m_nodes_to_laser_scans2D, full_update);
@@ -877,7 +877,7 @@ template <class GRAPH_T>
877877
void CGraphSlamEngine<GRAPH_T>::execDijkstraNodesEstimation()
878878
{
879879
{
880-
std::lock_guard<std::mutex> m_graph_lock(m_graph_section);
880+
std::lock_guard<std::mutex> graph_lock(m_graph_section);
881881
m_time_logger.enter("dijkstra_nodes_estimation");
882882
m_graph.dijkstra_nodes_estimate();
883883
m_time_logger.leave("dijkstra_nodes_estimation");
@@ -891,7 +891,7 @@ void CGraphSlamEngine<GRAPH_T>::monitorNodeRegistration(
891891
MRPT_START;
892892
using namespace mrpt;
893893

894-
std::lock_guard<std::mutex> m_graph_lock(m_graph_section);
894+
std::lock_guard<std::mutex> graph_lock(m_graph_section);
895895
size_t listed_nodeCount =
896896
(m_nodeID_max == INVALID_NODEID ? 0 : m_nodeID_max + 1);
897897

@@ -980,7 +980,7 @@ inline void CGraphSlamEngine<GRAPH_T>::computeMap() const
980980
using namespace mrpt::maps;
981981
using namespace mrpt::poses;
982982

983-
std::lock_guard<std::mutex> m_graph_lock(m_graph_section);
983+
std::lock_guard<std::mutex> graph_lock(m_graph_section);
984984

985985
if (!constraint_t::is_3D())
986986
{ // 2D Poses
@@ -1222,7 +1222,7 @@ template <class GRAPH_T>
12221222
void CGraphSlamEngine<GRAPH_T>::updateAllVisuals()
12231223
{
12241224
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);
12261226
m_time_logger.enter("Visuals");
12271227

12281228
m_node_reg->updateVisuals();
@@ -1737,7 +1737,7 @@ void CGraphSlamEngine<GRAPH_T>::toggleMapVisualization()
17371737
// get total number of nodes
17381738
int num_of_nodes;
17391739
{
1740-
std::lock_guard<std::mutex> m_graph_lock(m_graph_section);
1740+
std::lock_guard<std::mutex> graph_lock(m_graph_section);
17411741
num_of_nodes = m_graph.nodeCount();
17421742
}
17431743

@@ -2262,7 +2262,7 @@ void CGraphSlamEngine<GRAPH_T>::updateEstimatedTrajectoryVisualization(
22622262
ASSERTDEB_(m_enable_visuals);
22632263
using namespace mrpt::opengl;
22642264

2265-
std::lock_guard<std::mutex> m_graph_lock(m_graph_section);
2265+
std::lock_guard<std::mutex> graph_lock(m_graph_section);
22662266
ASSERTDEB_(m_graph.nodeCount() != 0);
22672267

22682268
COpenGLScene::Ptr scene = m_win->get3DSceneAndLock();
@@ -2744,7 +2744,7 @@ void CGraphSlamEngine<GRAPH_T>::generateReportFiles(
27442744

27452745

27462746
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);
27482748

27492749
std::string report_str;
27502750
std::string fname;

libs/graphslam/include/mrpt/graphslam/GSO/CLevMarqGSO_impl.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -411,7 +411,7 @@ void CLevMarqGSO<GRAPH_T>::optimizeGraph()
411411
<< "\t"
412412
<< "Trying to grab lock... ");
413413

414-
std::lock_guard<std::mutex> m_graph_lock(*this->m_graph_section);
414+
std::lock_guard<std::mutex> graph_lock(*this->m_graph_section);
415415
this->_optimizeGraph();
416416

417417
this->logFmt(mrpt::system::LVL_DEBUG, "2nd thread grabbed the lock..");

0 commit comments

Comments
 (0)