ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question
1

image_geometry::PinholeCameraModel - operator= missing

asked 2014-01-17 00:08:54 -0600

Tobias gravatar image

updated 2014-01-28 17:19:04 -0600

ngrennan gravatar image

Hi,

is it possible, that the operator=() is missing in the image_geometry::PinholeCameraModel? The following assertion is not true as expected.

void ClassA::setCameraModel( const image_geometry::PinholeCameraModel& cameraModel )
{
   mCameraModel = cameraModel; // fails, since no operator= implemented
   assert( mCameraModel.fx() == cameraModel.fx() );
}

a workaround would be to

void ClassA::setCameraModel( const image_geometry::PinholeCameraModel& cameraModel )
{
   mCameraModel.formCameraInfo( cameraModel.cameraInfo() );
   assert( mCameraModel.fx() == cameraModel.fx() );
}

Or is it not recommended to use the PinholeCameraModel that way?

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2014-01-17 08:22:06 -0600

Tobias gravatar image
edit flag offensive delete link more

Comments

You should submit a pull request to the upstream repository if your fix is good and works. If you need help doing that, follow the instructions at https://help.github.com/articles/using-pull-requests

Tim Sweet gravatar image Tim Sweet  ( 2014-01-17 11:26:20 -0600 )edit

Question Tools

Stats

Asked: 2014-01-17 00:08:54 -0600

Seen: 304 times

Last updated: Jan 17 '14