At this point I do get another camera topic show up on localhost:8080 thanks to the web_video_server but I cannot view it as it provides the following error:
[ERROR] [1618964197.352391082, 668.642000000]: cv_bridge exception: [16UC1] is not a color format. but [bgr8] is. The conversion does not make sense
I do however see data if I rostopic echo this new topic.
And this will then provide me with another rostopic that shows up on the web_video_server at localhost:8080 but cannot be viewed. I also get the following errors:
WARNING: no messages received and simulated time is active.
Is /clock being published?
When running rostopic echo /depthcloud_encoded.
So I believe that something is going wrong with the depthcloud encoder seeing as image_float does have data prior to the second last step. The above information should hopefully be enough to recreate and debug the issue.
Problem
So when following this tutorial: http://wiki.ros.org/ros3djs/Tutorials/Point%20Cloud%20Streaming%20from%20a%20Kinect
I get no output on the /depth_encoded topic at the end.
System information
I am running ROS Melodic on Ubuntu 18.04. I am using React to build the application and the following versions of the JavaScript libraries:
ROS Package versions:
Differences compared to tutorial
Information about ROS topics and code
The major variable from the tutorial is I do not have a kinect and so I am running Turtlebot 3 Gazebo which has the following camera topics:
Complete React code
Recreating the issue
First I run these commands
At this point I can now navigate to localhost:8080 and view both
camera/depth/image_raw
andcamera/rgb/image_raw
in the browser.I can then proceed to run this command:
Instead of this command that the tutorial suggests:
At this point I do get another camera topic show up on localhost:8080 thanks to the web_video_server but I cannot view it as it provides the following error:
[ERROR] [1618964197.352391082, 668.642000000]: cv_bridge exception: [16UC1] is not a color format. but [bgr8] is. The conversion does not make sense
I do however see data if I
rostopic echo
this new topic.Finally I run this command:
Instead of the command the tutorial suggests:
And this will then provide me with another rostopic that shows up on the web_video_server at localhost:8080 but cannot be viewed. I also get the following errors:
When running
rostopic echo /depthcloud_encoded
.So I believe that something is going wrong with the depthcloud encoder seeing as image_float does have data prior to the second last step. The above information should hopefully be enough to recreate and debug the issue.