After starting the commands:
roslaunch turtlebot3_bringup turtlebot3_rpicamera.launch [Turtlebot]
roslaunch turtlebot3_panorama panorama.launch [Remote]
rosservice call turtlebot3_panorama/take_pano 0 360.0 30.0 0.3 [Remote]
Only the following commands are shown in terminal:
[ INFO] [1528113614.391267503]: Degrees to go: 360
[ INFO] [1528113614.391356133]: rotate
[ INFO] [1528113614.491229042]: rotate
[ INFO] [1528113614.591234680]: rotate
[ INFO] [1528113614.691244960]: rotate
[ INFO] [1528113614.791200727]: rotate
[ INFO] [1528113614.891235382]: rotate
[ INFO] [1528113614.991248516]: rotate
[ INFO] [1528113615.091162402]: rotate
[ INFO] [1528113615.191176301]: rotate
[ INFO] [1528113615.291207926]: rotate
[ INFO] [1528113615.391169771]: rotate
but turtlebot3 Waffle PI is not moving at all.
Even after sending
rosservice call turtlebot3_panorama/take_pano 2 360.0 30.0 0.3 [Remote]
I cannot see any camera picture as shown in the below screenshot.
When i click on Camera/rgb/image_raw in rqt_image_view i get the images of the camera, so the pi camera should work.
Edit:
i guess the command
roslaunch turtlebot3_bringup turtlebot3_robot.launch [Turtlebot]
has to be launched in advance as well after that the robot starts spinning when
rosservice call turtlebot3_panorama/take_pano 0 360.0 30.0 0.3 [Remote]
gets called
Now the turtlebot is spinning around but after it finished one round it get the following error
in the terminal which runs roslaunch turtlebot3_panorama panorama.launch:
[ INFO] [1528123708.812500594]: snap
[ INFO] [1528123709.812693421]: Stiching 2 images
[ INFO] [1528123709.891097584]: Finished Stiching
[ERROR] [1528123709.891145396]: Compressed Depth Image Transport - Compression requires single-channel 32bit-floating point or 16bit raw depth images (input format is: bgr8).
OpenCV Error: Unknown error code -10 (Raw image encoder error: Empty JPEG image (DNL not supported)) in throwOnEror, file /tmp/binarydeb/ros-kinetic-opencv3-3.3.1/modules/imgcodecs/src/grfmt_base.cpp, line 140
[ERROR] [1528123709.891331341]: /tmp/binarydeb/ros-kinetic-opencv3-3.3.1/modules/imgcodecs/src/grfmt_base.cpp:140: error: (-10) Raw image encoder error: Empty JPEG image (DNL not supported) in function throwOnEror
[ERROR] [1528123709.891373088]: [theora] Failed to create encoding context
This error seems to occur when the following command is run during image acquisition
rqt_image_view image:=/turtlebot3_panorama/panorama
and seems to be related to the issue of two instances accessing the same jpeg file
In all cases the panorama image remains grey (see below) when looking at it via
rqt_image_view image:=/turtlebot3_panorama/panorama
even so i get the message in the terminal which runs roslaunch turtlebot3_panorama panorama.launch
[ INFO] [1528123914.836793089]: Stiching 7 images
[ INFO:0] Initialize OpenCL runtime...
[ INFO] [1528123915.545787520]: Finished Stiching
[ INFO] [1528123915.546026709]: Publishing Completed Panorama