Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Edit02 #15

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 2 additions & 4 deletions src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,7 @@ void vidCb(const sensor_msgs::ImageConstPtr img)

MinimalImageB minImg((int)cv_ptr->image.cols, (int)cv_ptr->image.rows,(unsigned char*)cv_ptr->image.data);
ImageAndExposure* undistImg = undistorter->undistort<unsigned char>(&minImg, 1,0, 1.0f);
undistImg->timestamp=cv_ptr->header.stamp.toSec();
fullSystem->addActiveFrame(undistImg, frameID);
frameID++;
delete undistImg;
Expand All @@ -173,8 +174,6 @@ int main( int argc, char** argv )
{
ros::init(argc, argv, "dso_live");



for(int i=1; i<argc;i++) parseArgument(argv[i]);


Expand Down Expand Up @@ -224,13 +223,12 @@ int main( int argc, char** argv )
ros::Subscriber imgSub = nh.subscribe("image", 1, &vidCb);

ros::spin();

fullSystem->printResult("result1.txt");
for(IOWrap::Output3DWrapper* ow : fullSystem->outputWrapper)
{
ow->join();
delete ow;
}

delete undistorter;
delete fullSystem;

Expand Down