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

viso2_ros package make error

asked 2013-02-23 08:12:42 -0600

ee.cornwell gravatar image

I am trying to rosmake viso2_ros but I am getting this error:

/home/eric/fuerte_workspace/sandbox/viso2/viso2_ros/src/stereo_odometer.cpp: In member function ‘virtual void viso2_ros::StereoOdometer::imageCallback(const ImageConstPtr&, const ImageConstPtr&, const CameraInfoConstPtr&, const CameraInfoConstPtr&)’:
  /home/eric/fuerte_workspace/sandbox/viso2/viso2_ros/src/stereo_odometer.cpp:112:47: error: conversion from ‘ros::WallTime’ to non-scalar type ‘ros::Time’ requested
  /home/eric/fuerte_workspace/sandbox/viso2/viso2_ros/src/stereo_odometer.cpp:222:61: error: no match for ‘operator-’ in ‘ros::WallTime::now()() - start_time’

Can anyone tell me why I am getting this make error? I am running Ubuntu Precise Fuerte. Thanks

edit retag flag offensive close merge delete

Comments

The error causes the stereoOdometer node to not compile. I noticed that the monoOdometer node compiled which is the only node I need. Thanks.

ee.cornwell gravatar image ee.cornwell  ( 2013-02-24 10:09:25 -0600 )edit

3 Answers

Sort by » oldest newest most voted
1

answered 2013-02-27 01:24:34 -0600

Miquel Massot gravatar image

updated 2013-03-03 20:35:15 -0600

Hi Eric,

thanks for reporting! There was a bug I just corrected there. Please, update your repo and let me know if there is any other issue.

Edit: I changed that in develop branch but forgot to merge then in master. Now it should work. Thanks limhyon!

edit flag offensive delete link more
1

answered 2013-03-03 09:19:07 -0600

Saurav Agarwal gravatar image

updated 2013-03-03 09:20:07 -0600

Hi, I tried compiling the latest, found compilation errors which were fixed as follows:

in file viso2_ros/src/stereo_odometer.cpp:

change the following line numbers to the following

Line 112 should be replaced by < ros::WallTime start_time = ros::WallTime::now(); >

Line 222 should be replaced by < ros::WallDuration time_elapsed = ros::WallTime::now() - start_time; >

edit flag offensive delete link more

Comments

I resourced viso2 after Massot's fix and am getting the same errors. I'll try this fix...thanks!

ee.cornwell gravatar image ee.cornwell  ( 2013-03-03 12:17:28 -0600 )edit

I had only changed develop branch. Sorry for that!

Miquel Massot gravatar image Miquel Massot  ( 2013-03-03 20:46:07 -0600 )edit
0

answered 2013-03-03 16:26:23 -0600

Hyon Lim gravatar image

Thanks sauravag.

edit flag offensive delete link more

Question Tools

Stats

Asked: 2013-02-23 08:12:42 -0600

Seen: 409 times

Last updated: Mar 03 '13