Skip to content

Commit

Permalink
update cpp header location in #include directive
Browse files Browse the repository at this point in the history
for fullfile in $(cd include/; find gmapping/ -type f -print); do headerfile=$(basename $fullfile); echo $fullfile; for targetfile in $(find . -type f -not -path "*/.git/*" -print); do sed -i "s@\([\"<]\)$headerfile\([>\"]\)@\1$fullfile\2@g" $targetfile | grep $headerfile; done; done

for fullfile in $(cd include/; find gmapping/ -type f -print); do headerfile=$(basename $fullfile); for targetfile in $(find . -type f -not -path "*/.git/*" -print); do sed -i "s@\([\"<]\)[a-z0-9_/]*/$headerfile\([>\"]\)@\1$fullfile\2@g" $targetfile | grep $headerfile; done; done
  • Loading branch information
k-okada committed Mar 18, 2019
1 parent 66586ec commit a40d6f1
Show file tree
Hide file tree
Showing 88 changed files with 175 additions and 175 deletions.
2 changes: 1 addition & 1 deletion carmenwrapper/carmenwrapper.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
*****************************************************************/


#include "carmenwrapper.h"
#include "gmapping/carmenwrapper/carmenwrapper.h"

using namespace GMapping;
using namespace std;
Expand Down
2 changes: 1 addition & 1 deletion configfile/configfile.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@


#include <cstdlib>
#include "configfile.h"
#include "gmapping/configfile/configfile.h"

#include <fstream>
#include <iostream>
Expand Down
2 changes: 1 addition & 1 deletion configfile/configfile_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@

#include <cstdlib>
#include <iostream>
#include "configfile.h"
#include "gmapping/configfile/configfile.h"

using namespace std;
using namespace GMapping;
Expand Down
10 changes: 5 additions & 5 deletions gfs-carmen/gfs-carmen.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,11 @@
*****************************************************************/


#include <utils/commandline.h>
#include <carmenwrapper/carmenwrapper.h>
#include <gridfastslam/gridslamprocessor.h>
#include <utils/orientedboundingbox.h>
#include <configfile/configfile.h>
#include <gmapping/utils/commandline.h>
#include <gmapping/carmenwrapper/carmenwrapper.h>
#include <gmapping/gridfastslam/gridslamprocessor.h>
#include <gmapping/utils/orientedboundingbox.h>
#include <gmapping/configfile/configfile.h>

#define DEBUG cout << __PRETTY_FUNCTION__

Expand Down
4 changes: 2 additions & 2 deletions grid/graphmap.cpp
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
#ifndef GRAPHMAP_H
#define GRAPHMAP_H
#include <list>
#include <utils/point.h>
#include <gmapping/utils/point.h>
#include <utils/graph.h>
#include <grid/map.h>
#include <gmapping/grid/map.h>

namespace GMapping {

Expand Down
4 changes: 2 additions & 2 deletions grid/map_test.cpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#include <iostream>
#include "map.h"
#include "harray2d.h"
#include "gmapping/grid/map.h"
#include "gmapping/grid/harray2d.h"

using namespace std;
using namespace GMapping;
Expand Down
4 changes: 2 additions & 2 deletions gridfastslam/gfs2log.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
#include <sstream>
#include <vector>
#include <list>
#include <utils/point.h>
#include "gfsreader.h"
#include <gmapping/utils/point.h>
#include "gmapping/gridfastslam/gfsreader.h"

#define MAX_LINE_LENGHT (1000000)

Expand Down
2 changes: 1 addition & 1 deletion gridfastslam/gfs2rec.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
#include <sstream>
#include <vector>
#include <list>
#include <utils/point.h>
#include <gmapping/utils/point.h>

#define MAX_LINE_LENGHT (1000000)

Expand Down
6 changes: 3 additions & 3 deletions gridfastslam/gfs2stat.cpp
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
#include <utils/stat.h>
#include <particlefilter/particlefilter.h>
#include <gmapping/utils/stat.h>
#include <gmapping/particlefilter/particlefilter.h>
#include <iostream>
#include <fstream>
#include "gfsreader.h"
#include "gmapping/gridfastslam/gfsreader.h"

using namespace std;
using namespace GMapping;
Expand Down
6 changes: 3 additions & 3 deletions gridfastslam/gfs2stream.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
#include <sstream>
#include <vector>
#include <list>
#include <utils/point.h>
#include <utils/commandline.h>
#include "gfsreader.h"
#include <gmapping/utils/point.h>
#include <gmapping/utils/commandline.h>
#include "gmapping/gridfastslam/gfsreader.h"
#define MAX_LINE_LENGHT (1000000)

using namespace std;
Expand Down
2 changes: 1 addition & 1 deletion gridfastslam/gfsreader.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#include <cstring>
#include "gfsreader.h"
#include "gmapping/gridfastslam/gfsreader.h"
#include <iomanip>
#include <limits>

Expand Down
4 changes: 2 additions & 2 deletions gridfastslam/gridslamprocessor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
#include <set>
#include <fstream>
#include <iomanip>
#include <utils/stat.h>
#include "gridslamprocessor.h"
#include <gmapping/utils/stat.h>
#include "gmapping/gridfastslam/gridslamprocessor.h"

//#define MAP_CONSISTENCY_CHECK
//#define GENERATE_TRAJECTORIES
Expand Down
4 changes: 2 additions & 2 deletions gridfastslam/gridslamprocessor_tree.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
#include <fstream>
//#include <gsl/gsl_blas.h>

#include <utils/stat.h>
#include "gridslamprocessor.h"
#include <gmapping/utils/stat.h>
#include "gmapping/gridfastslam/gridslamprocessor.h"

namespace GMapping {

Expand Down
4 changes: 2 additions & 2 deletions gridfastslam/motionmodel.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#include "motionmodel.h"
#include <utils/stat.h>
#include "gmapping/gridfastslam/motionmodel.h"
#include <gmapping/utils/stat.h>
#include <iostream>

#define MotionModelConditioningLinearCovariance 0.01
Expand Down
6 changes: 3 additions & 3 deletions gui/gfs2img.cpp
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
#include <cstdlib>
#include <limits.h>
#include <scanmatcher/scanmatcher.h>
#include <gridfastslam/gfsreader.h>
#include <gmapping/scanmatcher/scanmatcher.h>
#include <gmapping/gridfastslam/gfsreader.h>
#include <qpixmap.h>
#include <qpainter.h>
#include <qimage.h>
#include <qapplication.h>
#include <utils/commandline.h>
#include <gmapping/utils/commandline.h>

#define MAX_LASER_BEAMS 1024
#define MAX_FILENAME 1024
Expand Down
2 changes: 1 addition & 1 deletion gui/gfs_logplayer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@


#include <qapplication.h>
#include "qparticleviewer.h"
#include "gmapping/gui/qparticleviewer.h"

int main (int argc, char ** argv){
QApplication app(argc, argv);
Expand Down
2 changes: 1 addition & 1 deletion gui/gfs_nogui.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@


#include <unistd.h>
#include "gsp_thread.h"
#include "gmapping/gui/gsp_thread.h"

using namespace GMapping;

Expand Down
4 changes: 2 additions & 2 deletions gui/gfs_simplegui.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@
*****************************************************************/


#include "qparticleviewer.h"
#include "qgraphpainter.h"
#include "gmapping/gui/qparticleviewer.h"
#include "gmapping/gui/qgraphpainter.h"
#include <qapplication.h>
#include <qframe.h>
#include <qlabel.h>
Expand Down
10 changes: 5 additions & 5 deletions gui/gsp_thread.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,13 @@
*****************************************************************/


#include "gsp_thread.h"
#include <utils/commandline.h>
#include <utils/stat.h>
#include <configfile/configfile.h>
#include "gmapping/gui/gsp_thread.h"
#include <gmapping/utils/commandline.h>
#include <gmapping/utils/stat.h>
#include <gmapping/configfile/configfile.h>

#ifdef CARMEN_SUPPORT
#include <carmenwrapper/carmenwrapper.h>
#include <gmapping/carmenwrapper/carmenwrapper.h>
#endif

#define DEBUG cout << __PRETTY_FUNCTION__
Expand Down
2 changes: 1 addition & 1 deletion gui/qgraphpainter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@


#include <iostream>
#include "qgraphpainter.h"
#include "gmapping/gui/qgraphpainter.h"
#include "moc_qgraphpainter.cpp"
using namespace std;

Expand Down
2 changes: 1 addition & 1 deletion gui/qmappainter.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#include "qmappainter.h"
#include "gmapping/gui/qmappainter.h"
#include "moc_qmappainter.cpp"

QMapPainter::QMapPainter( QWidget * parent, const char * name, WFlags f):
Expand Down
2 changes: 1 addition & 1 deletion gui/qnavigatorwidget.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#include "qnavigatorwidget.h"
#include "gmapping/gui/qnavigatorwidget.h"
#include <stdio.h>
using namespace GMapping;

Expand Down
2 changes: 1 addition & 1 deletion gui/qparticleviewer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
*****************************************************************/


#include "qparticleviewer.h"
#include "gmapping/gui/qparticleviewer.h"
#include "moc_qparticleviewer.cpp"
#include <qimage.h>

Expand Down
2 changes: 1 addition & 1 deletion gui/qpixmapdumper.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#include "qpixmapdumper.h"
#include "gmapping/gui/qpixmapdumper.h"
#include <cstdio>
#include <cstring>

Expand Down
2 changes: 1 addition & 1 deletion gui/qslamandnavwidget.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#include "qslamandnavwidget.h"
#include "gmapping/gui/qslamandnavwidget.h"
#include <stdio.h>
using namespace GMapping;

Expand Down
12 changes: 6 additions & 6 deletions include/gmapping/carmenwrapper/carmenwrapper.h
Original file line number Diff line number Diff line change
Expand Up @@ -30,12 +30,12 @@
#include <semaphore.h>
#include <carmen/carmen.h>
#include <carmen/global.h>
#include <sensor/sensor_base/sensor.h>
#include <log/carmenconfiguration.h>
#include <log/sensorstream.h>
#include <log/sensorlog.h>
#include <sensor/sensor_range/rangesensor.h>
#include <sensor/sensor_range/rangereading.h>
#include <gmapping/sensor/sensor_base/sensor.h>
#include <gmapping/log/carmenconfiguration.h>
#include <gmapping/log/sensorstream.h>
#include <gmapping/log/sensorlog.h>
#include <gmapping/sensor/sensor_range/rangesensor.h>
#include <gmapping/sensor/sensor_range/rangereading.h>

namespace GMapping{

Expand Down
4 changes: 2 additions & 2 deletions include/gmapping/grid/array2d.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
#define ARRAY2D_H

#include <assert.h>
#include <utils/point.h>
#include "accessstate.h"
#include <gmapping/utils/point.h>
#include "gmapping/grid/accessstate.h"

#include <iostream>

Expand Down
6 changes: 3 additions & 3 deletions include/gmapping/grid/harray2d.h
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
#ifndef HARRAY2D_H
#define HARRAY2D_H
#include <set>
#include <utils/point.h>
#include <utils/autoptr.h>
#include "array2d.h"
#include <gmapping/utils/point.h>
#include <gmapping/utils/autoptr.h>
#include "gmapping/grid/array2d.h"

namespace GMapping {

Expand Down
6 changes: 3 additions & 3 deletions include/gmapping/grid/map.h
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
#ifndef MAP_H
#define MAP_H
#include <utils/point.h>
#include <gmapping/utils/point.h>
#include <assert.h>
#include "accessstate.h"
#include "array2d.h"
#include "gmapping/grid/accessstate.h"
#include "gmapping/grid/array2d.h"

namespace GMapping {
/**
Expand Down
2 changes: 1 addition & 1 deletion include/gmapping/gridfastslam/gfsreader.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
#include <sstream>
#include <vector>
#include <list>
#include <utils/point.h>
#include <gmapping/utils/point.h>

#define MAX_LINE_LENGHT (1000000)

Expand Down
18 changes: 9 additions & 9 deletions include/gmapping/gridfastslam/gridslamprocessor.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,14 @@
#include <fstream>
#include <vector>
#include <deque>
#include <particlefilter/particlefilter.h>
#include <utils/point.h>
#include <utils/macro_params.h>
#include <log/sensorlog.h>
#include <sensor/sensor_range/rangesensor.h>
#include <sensor/sensor_range/rangereading.h>
#include <scanmatcher/scanmatcher.h>
#include "motionmodel.h"
#include <gmapping/particlefilter/particlefilter.h>
#include <gmapping/utils/point.h>
#include <gmapping/utils/macro_params.h>
#include <gmapping/log/sensorlog.h>
#include <gmapping/sensor/sensor_range/rangesensor.h>
#include <gmapping/sensor/sensor_range/rangereading.h>
#include <gmapping/scanmatcher/scanmatcher.h>
#include "gmapping/gridfastslam/motionmodel.h"


namespace GMapping {
Expand Down Expand Up @@ -328,7 +328,7 @@ namespace GMapping {
typedef std::multimap<const GridSlamProcessor::TNode*, GridSlamProcessor::TNode*> TNodeMultimap;


#include "gridslamprocessor.hxx"
#include "gmapping/gridfastslam/gridslamprocessor.hxx"

};

Expand Down
6 changes: 3 additions & 3 deletions include/gmapping/gridfastslam/motionmodel.h
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
#ifndef MOTIONMODEL_H
#define MOTIONMODEL_H

#include <utils/point.h>
#include <utils/stat.h>
#include <utils/macro_params.h>
#include <gmapping/utils/point.h>
#include <gmapping/utils/stat.h>
#include <gmapping/utils/macro_params.h>

namespace GMapping {

Expand Down
6 changes: 3 additions & 3 deletions include/gmapping/gui/gsp_thread.h
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,9 @@
#include <deque>
#include <fstream>
#include <iostream>
#include <log/carmenconfiguration.h>
#include <log/sensorstream.h>
#include <gridfastslam/gridslamprocessor.h>
#include <gmapping/log/carmenconfiguration.h>
#include <gmapping/log/sensorstream.h>
#include <gmapping/gridfastslam/gridslamprocessor.h>

using namespace std;
using namespace GMapping;
Expand Down
2 changes: 1 addition & 1 deletion include/gmapping/gui/qgraphpainter.h
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
#include <qwidget.h>
#include <qwmatrix.h>
#include <deque>
#include <utils/gvalues.h>
#include <gmapping/utils/gvalues.h>

typedef std::deque<double> DoubleDeque;

Expand Down
4 changes: 2 additions & 2 deletions include/gmapping/gui/qmappainter.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
#include <qpixmap.h>
#include <qstring.h>
#include <qwidget.h>
#include <utils/gvalues.h>
#include <utils/point.h>
#include <gmapping/utils/gvalues.h>
#include <gmapping/utils/point.h>

class QMapPainter : public QWidget{
public:
Expand Down
Loading

0 comments on commit a40d6f1

Please sign in to comment.