[ros-users] rviz image_view can't display depth image from openni_camera

Patrick Goebel patrick at casbs.stanford.edu
Wed Dec 15 22:56:43 UTC 2010


Hi Radu,

Many thanks for the clarification.  I wanted to try out openni_pcl and I 
was starting by trying to install the main ni stack by following the 
instructions at:

http://www.ros.org/wiki/ni

These worked fine on another machine early this morning but now I am on 
a different machine with a fresh install of Ubuntu 10.04 and the latest 
C-Turtle debian packages and I get the following failure messages after 
executing the last step (rosmake ni)

\[ rosmake ] Expanded args ['ni'] to:
['openni', 'nite', 'openni_tracker', 'ps_engine', 'openni_camera', 
'pointcloud_to_laserscan', 'disparity_view', 'openni_pcl']
[ rosmake ] Checking rosdeps compliance for packages ni.  This may take 
a few seconds.
[ rosmake ] rosdep check passed all system dependencies in packages 

[rosmake-0] Starting >>> openni [ make ] 

[ rosmake ] Last 40 linesenni: 21.0 sec ]             [ 1 Active 2/61 
Complete ]
{-------------------------------------------------------------------------------
   g++ -MD -MP -MT "./bin/NiRecordSynthetic.d bin/NiRecordSynthetic.o" 
-c -O3 -msse3 -malign-double -I../../../../../Include  -o 
bin/NiRecordSynthetic.o 
../../../../../Samples/NiRecordSynthetic/NiRecordSynthetic.cpp
   g++ -o /home/patrick/ni/ni/openni/bin/Sample-NiRecordSynthetic 
./bin/NiRecordSynthetic.o -Wl,-rpath,/home/patrick/ni/ni/openni/lib 
-L/home/patrick/ni/ni/openni/lib -L/home/patrick/ni/ni/openni/bin -lOpenNI
   make[2]: Leaving directory 
`/home/patrick/ni/ni/openni/build/openni/Platform/Linux-x86/Build/Samples/NiRecordSynthetic'
   make -C Samples/NiSampleModule
   make[2]: Entering directory 
`/home/patrick/ni/ni/openni/build/openni/Platform/Linux-x86/Build/Samples/NiSampleModule'
   make[2]: Nothing to be done for `all'.
   make[2]: Leaving directory 
`/home/patrick/ni/ni/openni/build/openni/Platform/Linux-x86/Build/Samples/NiSampleModule'
   make -C Samples/NiSimpleCreate
   make[2]: Entering directory 
`/home/patrick/ni/ni/openni/build/openni/Platform/Linux-x86/Build/Samples/NiSimpleCreate'
   make[2]: Nothing to be done for `all'.
   make[2]: Leaving directory 
`/home/patrick/ni/ni/openni/build/openni/Platform/Linux-x86/Build/Samples/NiSimpleCreate'
   make -C Samples/NiCRead
   make[2]: Entering directory 
`/home/patrick/ni/ni/openni/build/openni/Platform/Linux-x86/Build/Samples/NiCRead'
   make[2]: Nothing to be done for `all'.
   make[2]: Leaving directory 
`/home/patrick/ni/ni/openni/build/openni/Platform/Linux-x86/Build/Samples/NiCRead'
   make -C Samples/NiSimpleViewer
   make[2]: Entering directory 
`/home/patrick/ni/ni/openni/build/openni/Platform/Linux-x86/Build/Samples/NiSimpleViewer'
   g++ -MD -MP -MT "./bin/NiSimpleViewer.d bin/NiSimpleViewer.o" -c -O3 
-msse3 -malign-double -I../../../../../Include  -o bin/NiSimpleViewer.o 
../../../../../Samples/NiSimpleViewer/NiSimpleViewer.cpp
   g++ -o /home/patrick/ni/ni/openni/bin/Sample-NiSimpleViewer 
./bin/NiSimpleViewer.o -Wl,-rpath,/home/patrick/ni/ni/openni/lib 
-L/home/patrick/ni/ni/openni/lib -L/home/patrick/ni/ni/openni/bin 
-lOpenNI -lglut
   make[2]: Leaving directory 
`/home/patrick/ni/ni/openni/build/openni/Platform/Linux-x86/Build/Samples/NiSimpleViewer'
   make -C Samples/NiAudioSample
   make[2]: Entering directory 
`/home/patrick/ni/ni/openni/build/openni/Platform/Linux-x86/Build/Samples/NiAudioSample'
   g++ -MD -MP -MT "./bin/NiAudioSample.d bin/NiAudioSample.o" -c -O3 
-msse3 -malign-double -I../../../../../Include  -o bin/NiAudioSample.o 
../../../../../Samples/NiAudioSample/NiAudioSample.cpp
   g++ -o /home/patrick/ni/ni/openni/bin/Sample-NiAudioSample 
./bin/NiAudioSample.o -Wl,-rpath,/home/patrick/ni/ni/openni/lib 
-L/home/patrick/ni/ni/openni/lib -L/home/patrick/ni/ni/openni/bin -lOpenNI
   make[2]: Leaving directory 
`/home/patrick/ni/ni/openni/build/openni/Platform/Linux-x86/Build/Samples/NiAudioSample'
   make -C Samples/NiUserTracker
   make[2]: Entering directory 
`/home/patrick/ni/ni/openni/build/openni/Platform/Linux-x86/Build/Samples/NiUserTracker'
   g++ -MD -MP -MT "./bin/main.d bin/main.o" -c -O3 -msse3 
-malign-double -I../../../../../Include  -o bin/main.o 
../../../../../Samples/NiUserTracker/main.cpp
   g++ -o /home/patrick/ni/ni/openni/bin/Sample-NiUserTracker 
./bin/main.o ./bin/SceneDrawer.o 
-Wl,-rpath,/home/patrick/ni/ni/openni/lib 
-L/home/patrick/ni/ni/openni/lib -L/home/patrick/ni/ni/openni/bin 
-lOpenNI -lglut
   make[2]: Leaving directory 
`/home/patrick/ni/ni/openni/build/openni/Platform/Linux-x86/Build/Samples/NiUserTracker'
   make[1]: Leaving directory 
`/home/patrick/ni/ni/openni/build/openni/Platform/Linux-x86/Build'
   /home/patrick/ni/ni/openni
   ### Register all modules...
   for file in `cat 
build/openni/Platform/Linux-x86/CreateRedist/install.sh | grep MODULES= 
| sed 's/\"//g' | awk -F "=" {'print $2'}`; do \
   		LD_LIBRARY_PATH=`rospack find openni`/lib rosrun openni niReg -r 
`pwd`/lib/$file lib; \
   	done
   /opt/ros/cturtle/ros/bin/rosrun: line 35:  2017 Illegal instruction 
    $exepath "$@"
   /opt/ros/cturtle/ros/bin/rosrun: line 35:  2023 Illegal instruction 
    $exepath "$@"
   /opt/ros/cturtle/ros/bin/rosrun: line 35:  2029 Illegal instruction 
    $exepath "$@"
-------------------------------------------------------------------------------}
[ rosmake ] Output from build of package openni written to:ctive 2/61 
Complete ]
[ rosmake ] 
/home/patrick/.ros/rosmake/rosmake_output-20101215-145247/openni/build_output.log
[rosmake-0] Finished <<< openni [FAIL] [ 21.11 seconds ] 

[ rosmake ] Halting due to failure in package openni.
[ rosmake ] Waiting for other threads to complete.
[ rosmake ] Results: 

[ rosmake ] Built 3 packages with 1 failures. 

[ rosmake ] Summary output to directory 

[ rosmake ] /home/patrick/.ros/rosmake/rosmake_output-20101215-145247 

patrick at pirobot-laptop:~$


On 12/15/2010 10:06 AM, Radu Bogdan Rusu wrote:
>
>
> All,
>
> The problem here is: the depth image is not a depth image, it's a
> disparity image. Looks like Patrick is working on adding a disparity
> viewer: http://www.ros.org/wiki/disparity_view
>
> For a faster PointCloud visualizer, try the openni_pcl visualizer:
> http://www.ros.org/wiki/openni_pcl (wiki page to follow in a few minutes
> :) ).
>
>
> Cheers,
> Radu.
> --
> http://pointclouds.org
>
> On 12/15/2010 07:03 AM, Patrick Goebel wrote:
>> I had this same issue so I am glad I found this thread. Based on what
>> Suat said, I am viewing the PointCloud in RViz on the
>> /camera/depth/points2 topic with Style set to Points and Color
>> Transformer set to RGB8 . While I see the point cloud fine, the refresh
>> rate is quite slow--roughly 5 fps. The camera image and point cloud
>> topics are refreshing at 30Hz according to rostopic hz. If I set the
>> Style to Billboard Spheres, the frame rate plummets to about 0.5 fps
>> even with the Color Transformer set to Flat Color. (My machine's load
>> meter also rises to about 3.8.)
>>
>> Could this be a graphics driver issue? I am running Ubuntu 10.04 on a
>> Fujitsu T730 tablet which has an Intel Core i5 running at 2.5GHz with
>> 4Gb RAM and I am not running any custom graphics drivers. My ROS
>> installation is the latest C Turtle using debian packages. I get the
>> same results whether I run the Kinect or OpenNI drivers.
>>
>> A related question: is it possible to get a grayscale or false-color
>> depth image like the one in the NITE demo or the one shown here?
>>
>> http://www.youtube.com/watch?v=jQgnuupBUI4
>>
>> Thanks!
>> Patrick Goebel
>> Behavioral Sciences
>> Stanford University
>>
>>
>>
>> _______________________________________________
>> ros-users mailing list
>> ros-users at code.ros.org
>> https://code.ros.org/mailman/listinfo/ros-users
>
>
>
> --
> If this email is spam, report it to
> https://support.onlymyemail.com/view/report_spam/NDE2OTM6MTIwMDk3MjQ5ODpwYXRyaWNrQGNhc2JzLnN0YW5mb3JkLmVkdTpkZWxpdmVyZWQ
>



More information about the ros-users mailing list