Skip to content

Commit 860c14e

Browse files
committed
rtabmap: fixed export poses in format 10 and 11 (#883)
1 parent 85bc1ee commit 860c14e

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

corelib/src/Graph.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ bool exportPoses(
5656
int format, // 0=Raw, 1=RGBD-SLAM motion capture (10=without change of coordinate frame, 11=10+ID), 2=KITTI, 3=TORO, 4=g2o
5757
const std::map<int, Transform> & poses,
5858
const std::multimap<int, Link> & constraints, // required for formats 3 and 4
59-
const std::map<int, double> & stamps, // required for format 1
59+
const std::map<int, double> & stamps, // required for format 1, 10 and 11
6060
const ParametersMap & parameters) // optional for formats 3 and 4
6161
{
6262
UDEBUG("%s", filePath.c_str());

corelib/src/Rtabmap.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1021,7 +1021,7 @@ void Rtabmap::exportPoses(const std::string & path, bool optimized, bool global,
10211021
}
10221022

10231023
std::map<int, double> stamps;
1024-
if(format == 1)
1024+
if(format == 1 || format == 10 || format == 11)
10251025
{
10261026
for(std::map<int, Transform>::iterator iter=poses.begin(); iter!=poses.end(); ++iter)
10271027
{

0 commit comments

Comments
 (0)