mirror of
https://github.com/introlab/rtabmap_ros.git
synced 2026-10-03 16:27:46 +08:00
fixed "CameraModel() Condition (fx > 0.0) not met! [fx=0.000000]" error on appearance-based demo
This commit is contained in:
@@ -895,6 +895,12 @@ rtabmap::Signature nodeDataFromROS(const rtabmap_ros::NodeData & msg)
|
||||
msg.fx.size() == msg.localTransform.size())
|
||||
{
|
||||
for(unsigned int i=0; i<msg.fx.size(); ++i)
|
||||
{
|
||||
if(msg.fx[i] == 0)
|
||||
{
|
||||
models.push_back(rtabmap::CameraModel());
|
||||
}
|
||||
else
|
||||
{
|
||||
models.push_back(rtabmap::CameraModel(
|
||||
msg.fx[i],
|
||||
@@ -907,6 +913,7 @@ rtabmap::Signature nodeDataFromROS(const rtabmap_ros::NodeData & msg)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
rtabmap::Signature s(
|
||||
msg.id,
|
||||
|
||||
Reference in New Issue
Block a user