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

Can't find any info/documentation on Ros Node: /ros_camera_preview_view

asked 2019-01-15 05:15:13 -0500

ROStutorialLearner gravatar image

updated 2019-01-16 06:11:41 -0500

I have an app that sends images to Ros through networking, and when I connect it "/ros_camera_preview_view" appears when I use "rosnode list" I've searching the web but I can't find any documentation for this /ros_camera_preview_view node? How would I retrieve images in this node in C++ code? And what packages should I include because when I try to include "ros_camera_preview_view" Ros will tell me that the package doesn't exist?

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
1

answered 2019-01-15 06:59:17 -0500

gvdhoorn gravatar image

updated 2019-01-15 07:04:03 -0500

I have an app [..], and when I connect it "/ros_camera_preview_view" appears when I use "rosnode list" I've searching the web but I can't find any documentation for this /ros_camera_preview_view node?

/ros_camera_preview_view is the name, not a node type, so unless the name is exactly identical to the type, chances are you won't find anything when searching for the name.

I have an app [..]

Since you mention "app", I assume you're running this on a phone. I'd try to get some more info from whoever / wherever you got the app.

If that is not possible, try doing a rosnode info /ros_camera_preview_view and see what the ROS API is that the node exposes (ie: topics, services, actions, etc).

Then for each of the topics listed, do a rostopic info <topic_name> and a rostopic type <topic_name> (there should be tab-completion). That should help you figure out the types that are being used. Do the same for any services, but use rosservice info <service_name> and rosservice type <service_name>.

How would I retrieve images in this node in C++ code?

Seeing as you mention "sends images to Ros", I'm going to guess it has at least one topic onto which sensor_msgs/Images are being published (or any of the compressed versions). In that case, you'll want to check Writing a Simple Image Subscriber (Python version here).

when I try to include "ros_camera_preview_view" Ros will tell me that the package doesn't exist?

That's not how this works, but that will probably become clear from the tutorial(s) I linked.

edit flag offensive delete link more

Comments

Thanks for your answer it's helped me a lot and after following the tutorial I end up with the following error when trying to apply it to my code; See the update in the OP.

ROStutorialLearner gravatar image ROStutorialLearner  ( 2019-01-16 05:47:54 -0500 )edit
1

I end up with the following error when trying to apply it to my code; See the update in the OP.

please do not post follow-up questions in the same question. ROS Answers is not a regular forum: it works best with a 1-to-1 ratio of questions and answers.

If your initial question was answered, ..

gvdhoorn gravatar image gvdhoorn  ( 2019-01-16 06:01:06 -0500 )edit
1

.. please mark it as such by clicking the checkmark icon to the left of the answer that answered it.

If you then have additional questions, post a new question, clearly stating in the text that it is a follow-up to one of your previous questions.

I would also recommend to undo your edit.

gvdhoorn gravatar image gvdhoorn  ( 2019-01-16 06:01:57 -0500 )edit

Question Tools

1 follower

Stats

Asked: 2019-01-15 05:15:13 -0500

Seen: 158 times

Last updated: Jan 16 '19