Skip to content
This repository was archived by the owner on Jul 20, 2023. It is now read-only.

Remove producer and viewer clients from pipeline tests#5

Open
duongnamduong wants to merge 7 commits intodevelopfrom
feat/cleaner-exit-on-escape
Open

Remove producer and viewer clients from pipeline tests#5
duongnamduong wants to merge 7 commits intodevelopfrom
feat/cleaner-exit-on-escape

Conversation

@duongnamduong
Copy link
Contributor

No description provided.

@duongnamduong duongnamduong requested a review from jim-bcom July 23, 2021 10:25
SRef<Image> image = images[INDEX_USE_CAMERA];
Transform3Df pose = poses[INDEX_USE_CAMERA];
// display image
if (gImageViewer->display(image) != FrameworkReturnCode::_SUCCESS) break;
Copy link
Contributor

@jim-bcom jim-bcom Jul 23, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LOG_ERROR ? If it's an error, this path should not lead to return 0.

std::vector<SRef<CloudPoint>> pointCloud;
std::vector<Transform3Df> keyframePoses;
if (gMappingPipeline->getDataForVisualization(pointCloud, keyframePoses) == FrameworkReturnCode::_SUCCESS) {
if (g3DViewer->display(pointCloud, keyframePoses[keyframePoses.size() - 1], keyframePoses) != FrameworkReturnCode::_SUCCESS)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LOG_ERROR() ?

#include <boost/log/core.hpp>
#include <boost/thread/thread.hpp>
#include <signal.h>
#include <thread>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this comes from my previous commit, check whether you can remove it.

#include <boost/log/core.hpp>
#include <boost/thread/thread.hpp>
#include <signal.h>
#include <thread>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same as before, maybe from my previous commit, see if you can get rid of it.

SRef<Image> image = images[INDEX_USE_CAMERA];
Transform3Df pose = poses[INDEX_USE_CAMERA];
// display image
if (gImageViewer->display(image) != FrameworkReturnCode::_SUCCESS) break;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LOG_ERROR()?

std::vector<SRef<CloudPoint>> pointCloud;
std::vector<Transform3Df> keyframePoses;
if (gMappingPipeline->getDataForVisualization(pointCloud, keyframePoses) == FrameworkReturnCode::_SUCCESS) {
if (g3DViewer->display(pointCloud, keyframePoses[keyframePoses.size() - 1], keyframePoses) != FrameworkReturnCode::_SUCCESS)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LOG_ERROR()?

…pressing escape. Fix .pro to install correct config files
Copy link
Contributor

@jim-bcom jim-bcom left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

… folder. Fix map visualization of pipeline tests
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants