随笔 - 10,  文章 - 1,  评论 - 0,  阅读 - 2676

bool VisualOdometry::checkEstimatedPose()
{
// check if the estimated pose is good
if ( num_inliers_ < min_inliers_ )
{
cout<<"reject because inlier is too small: "<<num_inliers_<<endl;
return false;
}
// if the motion is too large, it is probably wrong
Sophus::Vector6d d = T_c_r_estimated_.log();
if ( d.norm() > 5.0 )
{
cout<<"reject because motion is too large: "<<d.norm()<<endl;
return false;
}
return true;
}

 

这里

Sophus::Vector6d d = T_c_r_estimated_.log();

d.norm() > 5.0

旋转矩阵归一化>5.0是啥意思。

posted @ 2018-06-06 19:48 凰浴浴的CodingBlog 阅读(93) 评论(0) 推荐(0) 编辑
摘要: 我擦。。。突然发现好多天木有记随笔了......坑爹的期中考试啊....早上adsp下下星期一的数据挖掘....搞完了得速度回归ios...这nm都要忘的差不多了....得睡了...给上午的adsp跪求rp 阅读全文
posted @ 2012-11-24 02:25 凰浴浴的CodingBlog 阅读(127) 评论(0) 推荐(0) 编辑
摘要: 说白了。。这就是"设置"...NSUserDefaults *myDefaults=[NSUserDefaultsstandardUserDefaults]; 阅读全文
posted @ 2012-11-14 22:21 凰浴浴的CodingBlog 阅读(95) 评论(0) 推荐(0) 编辑
摘要: 检索文件NSArray *paths = NSSearchPathForDirectoriesInDomains(NSLibraryDirectory,NSUserDomainMask, YES);//获取关于本工程的一系列路径NSString *documentsDirectory = [paths objectAtIndex:0];//paths中是一个字符串数组,但往往只有第一个是期待得到的. filePath = [documentsDirectorystringByAppendingPathComponent:@"textviewcontent"];//关于str 阅读全文
posted @ 2012-11-14 22:13 凰浴浴的CodingBlog 阅读(196) 评论(0) 推荐(0) 编辑
摘要: 1.controller.modalTransitionStyle =UIModalTransitionStyleCoverVertical;modalTransitionStyleDiscussionThis property determines how the view controller’s is animated onscreen when it is presented using thepresentViewController:animated:completion:method. To change the transition type, you must set thi 阅读全文
posted @ 2012-11-14 20:09 凰浴浴的CodingBlog 阅读(832) 评论(0) 推荐(0) 编辑
摘要: 代码很精短...书上介绍的也不多。愣是整整干了一天才完成...holy shit,不过还是学到了很多新东西.当时看书的时候,书上介绍这个的篇幅加上代码总共才1页两面...加上之前源代码下好了,按照惯例把源代码打开看看应用效果啊,xib文件啊,对类的应用啊等等,然后发现就那么一点东西,基本上所有代码都集中在了RootViewController中了...觉得木有什么,差一点就看看而过去了...后来还是觉得手写一下比较好,这nm写了发现各种坑爹啊...短短的几行代码各种问题...一首先这个程序采用一个主viewController控制整个视图的切换,各个分视图只是随便给背景涂了个颜色就完了,甚至分 阅读全文
posted @ 2012-11-09 21:59 凰浴浴的CodingBlog 阅读(206) 评论(0) 推荐(0) 编辑
摘要: 在对table中每一个cell进行初始化时候,是下面这个函数- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath{ static NSString *MyIdentifier = @"MyIdentifier"; UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:MyIdentifier]; if (cell == nil) {cell 阅读全文
posted @ 2012-11-08 12:13 凰浴浴的CodingBlog 阅读(384) 评论(0) 推荐(0) 编辑
摘要: 其实还完全没有入门。。先把知道的整上来把,以后一点一点加-(BOOL)CheckInput:(NSString *)_text{ NSString *Regex = @"[0]\\.\\d+(\\,[0]\\.\\d+)*"; NSPredicate *emailTest = [NSPredicatepredicateWithFormat:@"SELF MATCHES %@", Regex]; return [emailTest evaluateWithObject:_text];}myText是个textField if([myText.textran 阅读全文
posted @ 2012-11-07 22:14 凰浴浴的CodingBlog 阅读(215) 评论(0) 推荐(0) 编辑
摘要: UIResponder的传递顺序相当于是父类这个顺序或者说响应者链对应的是视图层次结构,但是方向相反这样我可以建立一个带xib文件的继承UIViewController的Ojective-C class为reportViewController,然后再建立一个继承UIView的Objective-C class为reportView这里我们设置reportViewController里的UIView是reportView,这样我们处理视图触摸事件时候,我们在reportView里写入消息管理函数touchesBegin:withEvent:等,但是为了按照MVC模型的管理机制,我们把消息处理代 阅读全文
posted @ 2012-11-07 22:09 凰浴浴的CodingBlog 阅读(143) 评论(0) 推荐(0) 编辑
摘要: 即使是照着书一步一步把代码抄下来,其实也并没有完全使项目完整,跟源代码一模一样。往往是由于下面原因1.控件、视图经常是通过interface方式创建的,那么这个时候就忘记了去建立IBOutlet、delegate等连接2.需要点击项目名,在Summary窗口中的Main Interface里设置MainWindow3.书中的代码编写时候用的是IDE版本更自己code时候的版本不一样,当创建项目自动开创的模板中的代码就出现了差异,这时候就悲剧鸟现在看看为何运行工程时候总有expected a RootViewController这样的错误发生。根据http://www.cocoachina.co 阅读全文
posted @ 2012-11-07 21:49 凰浴浴的CodingBlog 阅读(214) 评论(0) 推荐(0) 编辑

< 2025年3月 >
23 24 25 26 27 28 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31 1 2 3 4 5
点击右上角即可分享
微信分享提示