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

ni compile error under diamondback

asked 2011-02-27 09:38:29 -0600

Qi gravatar image

updated 2011-02-27 09:51:33 -0600

Hi,

I install the latest diamondback (RC3) and trying to install ni per http://www.ros.org/wiki/ni However, on step "rosmake ni --rosdep-install", I got the following error for the "disparity_view". it seems to look for the cturtle link in the diamondback ni build. Can someone fix this? thanks, -Qi

Output below:

[rosmake-0] Starting >>> disparity_view [ make ]                                                                                                           
[ rosmake ] All 16 linesisparity_view: 0.7 sec ]                                                                                [ 1 Active 28/63 Complete ]
{-------------------------------------------------------------------------------
  mkdir -p bin
  cd build && cmake -Wdev -DCMAKE_TOOLCHAIN_FILE=`rospack find rosbuild`/rostoolchain.cmake  ..
  CMake Error at build/CMakeFiles/CMakeSystem.cmake:1 (INCLUDE):
    include could not find load file:

      /opt/ros/cturtle/ros/core/rosbuild/rostoolchain.cmake
  Call Stack (most recent call first):

  [rosbuild] Building package disparity_view
  [rosbuild] Including /opt/ros/diamondback/stacks/ros_comm/clients/roslisp/cmake/roslisp.cmake
  [rosbuild] Including /opt/ros/diamondback/stacks/ros_comm/clients/rospy/cmake/rospy.cmake
  [rosbuild] Including /opt/ros/diamondback/stacks/ros_comm/clients/cpp/roscpp/cmake/roscpp.cmake
  -- Configuring incomplete, errors occurred!
-------------------------------------------------------------------------------}
[ rosmake ] Output from build of package disparity_view written to:
[ rosmake ]    /home/blurpc2/.ros/rosmake/rosmake_output-20110227-152728/disparity_view/build_output.log
[rosmake-0] Finished <<< disparity_view [FAIL] [ 0.73 seconds ]                                                                                            
[ rosmake ] Halting due to failure in package disparity_view.
edit retag flag offensive close merge delete

4 Answers

Sort by ยป oldest newest most voted
0

answered 2011-02-27 17:51:22 -0600

Qi gravatar image

OK. I have finally successfully compiled the ni with the following changes:

  1. in ~/ni/setup.sh, change cturtle to damondback.
  2. in the following files, change cturtle to damondback. /home/blurpc2/ni/ni/pointcloud_to_laserscan/build/CMakeFiles/CMakeSystem.cmake /home/blurpc2/ni/ni/openni_tracker/build/CMakeFiles/CMakeSystem.cmake /home/blurpc2/ni/ni/disparity_view/build/CMakeFiles/CMakeSystem.cmake

After the above changes, ni compiles under diamondback! ;)

edit flag offensive delete link more

Comments

I imagine the 'recommended' way to do #1 would be to re-run rosinstall, though personally, I would just add ~/ni to ROS_PACKAGE_PATH in .bashrc and not bother with rosinstall. But for #2 you shouldn't have to change those files as they are autogenerated. The --pre-clean flag for rosmake would help.
Patrick Bouffard gravatar image Patrick Bouffard  ( 2011-02-28 03:25:26 -0600 )edit
2

answered 2011-02-27 09:50:56 -0600

Something is wrong with your diamondback install if cturtle is being mentioned in the rosmake output. Are you sure you followed the diamondback install instructions for ni? Did you previously have cturtle on your system?

edit flag offensive delete link more

Comments

I had installed cturtle before for kinect. it is deprecated by ROS now. so I removed it by "sudo apt-get purge ros-cturtle* ". Did i missed anything else to wipe cturtle out?
Qi gravatar image Qi  ( 2011-02-27 16:03:46 -0600 )edit
Even if all the ros-cturtle-* packages were still installed on your system, that wouldn't matter, unless they are somehow being pointed to. That could be happening if you still have something leftover in your .bashrc, or perhaps due to the arguments you gave to rosinstall when you installed ni.
Patrick Bouffard gravatar image Patrick Bouffard  ( 2011-02-27 16:16:26 -0600 )edit
0

answered 2011-02-27 14:44:49 -0600

enddl22 gravatar image

Did you run "source setup.bash" that locate on the diamondback root folder?

In my case, that file residues on /opt/ros/diamondback/setup.bash.

Cheers.

edit flag offensive delete link more
0

answered 2011-02-27 16:37:37 -0600

Qi gravatar image

updated 2011-02-27 16:39:09 -0600

Yes, I ran: source /opt/ros/diamondback/setup.bash. Then "ROSWTF" show the following:

++++++++++++++++++++

Loaded plugin tf.tfwtf

No package or stack in context

Static checks summary:

No errors or warnings

Beginning tests of your ROS graph. These may take awhile... analyzing graph... ... done analyzing graph running graph rules... connection to [/openni_node1] timed out ... done running graph rules

Online checks summary:

Found 1 warning(s). Warnings are things that may be just fine, but are sometimes at fault

WARNING The following nodes are unexpectedly connected: * /openni_node1->/rosout (/rosout)

Found 2 error(s).

ERROR Could not contact the following nodes: * /openni_node1

ERROR Errors connecting to the following services: * service [/openni_node1/get_loggers] appears to be malfunctioning: Unable to communicate with service [/openni_node1/get_loggers], address [rosrpc://pc2:34106] * service [/openni_node1/set_logger_level] appears to be malfunctioning: Unable to communicate with service [/openni_node1/set_logger_level], address [rosrpc://pc2:34106]

++++++++++++++++++++

Then I ran "rosmake ni --rosdep-install", got stuck at disparity_view again. Then I ran ROSWTF again, and got the following

+++++++++++++++++

Loaded plugin tf.tfwtf

No package or stack in context

Static checks summary:

Found 1 error(s).

ERROR Not all paths in ROS_PACKAGE_PATH [/home/blurpc2/ni/ni:/opt/ros/diamondback/stacks:/opt/ros/cturtle/stacks:/opt/ros/cturtle/ros] point to an existing directory: * /opt/ros/cturtle/stacks * /opt/ros/cturtle/ros

.....

+++++++++++++++++

It seems somewhere during the "rosmake ni --rosdep-install", the cturtle path is inserted to the ROS_PACKAGE_PATH.

Any ideas?

edit flag offensive delete link more

Question Tools

Stats

Asked: 2011-02-27 09:38:29 -0600

Seen: 526 times

Last updated: Feb 27 '11