Skip to content

Commit

Permalink
GUI: fixed stereo odom images flickering, bug introduced by this commit
Browse files Browse the repository at this point in the history
  • Loading branch information
matlabbe committed Nov 24, 2021
1 parent 70bc399 commit 4f4f728
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion README.md
Expand Up @@ -82,7 +82,7 @@ This section shows how to install RTAB-Map ros-pkg on **ROS Hydro/Indigo/Jade/Ki
$ git clone https://github.com/introlab/rtabmap.git rtabmap
$ cd rtabmap/build
$ cmake .. [<---double dots included]
$ make
$ make -j6
$ sudo make install
```

Expand Down
4 changes: 2 additions & 2 deletions src/MsgConversion.cpp
Expand Up @@ -1991,7 +1991,7 @@ bool convertStereoMsg(
if(leftImageMsg->encoding.compare(sensor_msgs::image_encodings::TYPE_8UC1) == 0 ||
leftImageMsg->encoding.compare(sensor_msgs::image_encodings::MONO8) == 0)
{
left = leftImageMsg->image;
left = leftImageMsg->image.clone();
}
else if(leftImageMsg->encoding.compare(sensor_msgs::image_encodings::MONO16) == 0)
{
Expand All @@ -2004,7 +2004,7 @@ bool convertStereoMsg(
if(rightImageMsg->encoding.compare(sensor_msgs::image_encodings::TYPE_8UC1) == 0 ||
rightImageMsg->encoding.compare(sensor_msgs::image_encodings::MONO8) == 0)
{
right = rightImageMsg->image;
right = rightImageMsg->image.clone();
}
else
{
Expand Down

0 comments on commit 4f4f728

Please sign in to comment.