<div class="gmail_quote">On Wed, Dec 29, 2010 at 1:39 AM, Homer Manalo <span dir="ltr"><<a href="mailto:homer.manalo@roboteknik.com" target="_blank">homer.manalo@roboteknik.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

I've got it working now by replacing the "image_topic" with "/gscam/image_raw" in this line:<br><br><span style="font-family:courier new,monospace">image_sub_ = it_.subscribe("/gscam/image_raw", 1, &ImageConverter::imageCallback, this);</span><br>


<br>Still, I want to know how to make it work without this modification.</blockquote><div><br></div><div>Are you familiar with topic remapping (<a href="http://www.ros.org/wiki/Remapping%20Arguments" target="_blank">http://www.ros.org/wiki/Remapping%20Arguments</a>)? It would allow you to run your converter node (without the above change) like so:</div>

<div><br></div><div>rosrun image_converter_pkg_name image_converter image_topic:=/gscam/image_raw</div><div><br></div><div>You would obviously need to use the correct package and executable names, but the bit following the executable name is the topic remapping magic.</div>
<div><br></div><div>On a separate note, did you go through all of the ROS tutorials at <a href="http://www.ros.org/wiki/ROS/Tutorials/">http://www.ros.org/wiki/ROS/Tutorials/</a> ? I would expect remapping to be introduced somewhere in them.</div>
<div><br></div><div>- Eric</div><meta http-equiv="content-type" content="text/html; charset=utf-8">
<div><br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div></div><div><br style="font-family:courier new,monospace">
<br><div class="gmail_quote">On Wed, Dec 29, 2010 at 11:56 AM, Homer Manalo <span dir="ltr"><<a href="mailto:homer.manalo@roboteknik.com" target="_blank">homer.manalo@roboteknik.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0pt 0pt 0pt 0.8ex;border-left:1px solid rgb(204, 204, 204);padding-left:1ex">Is there a comprehensive guide on this? I am not sure what those "make sure" mean. Am I suppose to get a warning message for these? I've attached the rxgraph see if it helps.<div>


<div></div><div><br><br><div class="gmail_quote">On Thu, Dec 23, 2010 at 8:28 AM, Tully Foote <span dir="ltr"><<a href="mailto:tfoote@willowgarage.com" target="_blank">tfoote@willowgarage.com</a>></span> wrote:<br>



<blockquote class="gmail_quote" style="margin:0pt 0pt 0pt 0.8ex;border-left:1px solid rgb(204, 204, 204);padding-left:1ex">Have you been through the network troubleshooting page? <a href="http://www.ros.org/wiki/ROS/Troubleshooting#Network_Configuration" target="_blank">http://www.ros.org/wiki/ROS/Troubleshooting#Network_Configuration</a><br>



<br>Tully<div><div></div><div><br><br>

<div class="gmail_quote">On Tue, Dec 21, 2010 at 1:58 AM, Homer Manalo <span dir="ltr"><<a href="mailto:homer.manalo@roboteknik.com" target="_blank">homer.manalo@roboteknik.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0pt 0pt 0pt 0.8ex;border-left:1px solid rgb(204, 204, 204);padding-left:1ex">





Yes I can see it. I'm actually using this line:<br><span style="font-family:courier new,monospace">rosrun image_view image_view image:=/gscam/image_raw</span><br><br>It's like there is no communication between the camera and the image_converter.<br>






<br>Here are some rostopic outputs:<br><span style="font-family:courier new,monospace">Published topics:</span><br style="font-family:courier new,monospace"><span style="font-family:courier new,monospace"> * /gscam/camera_info [sensor_msgs/CameraInfo] 1 publisher</span><br style="font-family:courier new,monospace">






<span style="font-family:courier new,monospace"> * /gscam/image_raw [sensor_msgs/Image] 1 publisher</span><br style="font-family:courier new,monospace"><span style="font-family:courier new,monospace"> * /rosout [roslib/Log] 3 publishers</span><br style="font-family:courier new,monospace">






<span style="font-family:courier new,monospace"> * /rosout_agg [roslib/Log] 1 publisher</span><br style="font-family:courier new,monospace"><span style="font-family:courier new,monospace"> * /image_topic_2 [sensor_msgs/Image] 1 publisher</span><br style="font-family:courier new,monospace">






<br style="font-family:courier new,monospace"><span style="font-family:courier new,monospace">Subscribed topics:</span><br style="font-family:courier new,monospace"><span style="font-family:courier new,monospace"> * /image_topic [sensor_msgs/Image] 1 subscriber</span><br style="font-family:courier new,monospace">






<span style="font-family:courier new,monospace"> * /gscam/image_raw [sensor_msgs/Image] 1 subscriber</span><br style="font-family:courier new,monospace"><span style="font-family:courier new,monospace"> * /rosout [roslib/Log] 1 subscriber</span><br style="font-family:courier new,monospace">






<span style="font-family:courier new,monospace">homermanalo@Macmini-Linux:~/ros/stacks/pkg_test0$ rostopic info /image_topic_2</span><br style="font-family:courier new,monospace"><span style="font-family:courier new,monospace">Type: sensor_msgs/Image</span><br style="font-family:courier new,monospace">






<br style="font-family:courier new,monospace"><span style="font-family:courier new,monospace">Publishers: </span><br style="font-family:courier new,monospace"><span style="font-family:courier new,monospace"> * /image_converter (<a href="http://Macmini-Linux:36632/" target="_blank">http://Macmini-Linux:36632/</a>)</span><br style="font-family:courier new,monospace">






<br style="font-family:courier new,monospace"><span style="font-family:courier new,monospace">Subscribers: None</span><br style="font-family:courier new,monospace"><br style="font-family:courier new,monospace"><br style="font-family:courier new,monospace">






<span style="font-family:courier new,monospace">homermanalo@Macmini-Linux:~/ros/stacks/pkg_test0$ rostopic info /image_topic</span><br style="font-family:courier new,monospace"><span style="font-family:courier new,monospace">Type: sensor_msgs/Image</span><br style="font-family:courier new,monospace">






<br style="font-family:courier new,monospace"><span style="font-family:courier new,monospace">Publishers: None</span><br style="font-family:courier new,monospace"><br style="font-family:courier new,monospace"><span style="font-family:courier new,monospace">Subscribers: </span><br style="font-family:courier new,monospace">






<span style="font-family:courier new,monospace"> * /image_converter (<a href="http://Macmini-Linux:36632/" target="_blank">http://Macmini-Linux:36632/</a>)</span><br style="font-family:courier new,monospace"><br style="font-family:courier new,monospace">






<br style="font-family:courier new,monospace"><span style="font-family:courier new,monospace">homermanalo@Macmini-Linux:~/ros/stacks/pkg_test0$ rostopic info /gscam/image_rawType: sensor_msgs/Image</span><br style="font-family:courier new,monospace">






<br style="font-family:courier new,monospace"><span style="font-family:courier new,monospace">Publishers: </span><br style="font-family:courier new,monospace"><span style="font-family:courier new,monospace"> * /gscam_publisher (<a href="http://Macmini-Linux:60675/" target="_blank">http://Macmini-Linux:60675/</a>)</span><br style="font-family:courier new,monospace">






<br style="font-family:courier new,monospace"><span style="font-family:courier new,monospace">Subscribers: </span><br style="font-family:courier new,monospace"><span style="font-family:courier new,monospace"> * /image_view_1292924423744539054 (<a href="http://Macmini-Linux:51945/" target="_blank">http://Macmini-Linux:51945/</a>)</span><br>






<br>thanks<div><div></div><div><br><br><div class="gmail_quote">On Tue, Dec 21, 2010 at 5:26 PM, Billy Okal <span dir="ltr"><<a href="mailto:b.okal@jacobs-university.de" target="_blank">b.okal@jacobs-university.de</a>></span> wrote:<br>





<blockquote class="gmail_quote" style="margin:0pt 0pt 0pt 0.8ex;border-left:1px solid rgb(204, 204, 204);padding-left:1ex">
Hi Manalo,<div><br></div><div>you can see the mages using image_view  </div><div><br></div><div><span style="font-family:Helvetica,Verdana,Arial,'Lucida Grande',sans-serif;font-size:15px"><pre style="border:1pt solid rgb(174, 189, 204);background-color:rgb(243, 245, 247);padding:5pt;font-family:courier,monospace;white-space:pre-wrap;word-wrap:break-word">
image_view image:=<image topic> [image transport type]</pre></span><div class="gmail_quote">More info here</div><div class="gmail_quote"><br></div><div class="gmail_quote"><a href="http://www.ros.org/wiki/image_view" target="_blank">http://www.ros.org/wiki/image_view</a></div>







<div class="gmail_quote"><br></div><div class="gmail_quote">billy</div><div class="gmail_quote"><br></div><div class="gmail_quote"><br></div><div class="gmail_quote"><div><div></div><div>On 21 December 2010 08:32, Homer Manalo <span dir="ltr"><<a href="mailto:homer.manalo@roboteknik.com" target="_blank">homer.manalo@roboteknik.com</a>></span> wrote:<br>







</div></div><blockquote class="gmail_quote" style="margin:0pt 0pt 0pt 0.8ex;border-left:1px solid rgb(204, 204, 204);padding-left:1ex"><div><div></div><div>I want to start opencv with <a href="http://www.ros.org/wiki/cv_bridge/Tutorials/UsingCvBridgeToConvertBetweenROSImagesAndOpenCVImages" target="_blank">this tutorial</a> but it doesn't work for me.<br>







<br>I created a new package then added the cpp file to the src folder then added this line: rosbuild_add_executable(pkg_test0_imgToCv src/pkg_test0_imgToCv.cpp) to the CMakeLists.txt file. I already added the dependencies to the manifest file. Then make.<br>








<br>When I run it nothing happens, I expect the highgui would appear. I can confirm that my camera(gscam) is streaming images. I can see that the topics listed are active but using echo on the image_topic and image_topic_2 prints out nothing. Using rxgraph, there are only the gstreamer_publisher node and image_converter node connected to rosout node. Did I miss something? How do I get this thing to work?<br>








<br>thanks<br>
<br></div></div>_______________________________________________<br>
ros-users mailing list<br>
<a href="mailto:ros-users@code.ros.org" target="_blank">ros-users@code.ros.org</a><br>
<a href="https://code.ros.org/mailman/listinfo/ros-users" target="_blank">https://code.ros.org/mailman/listinfo/ros-users</a><br>
<br></blockquote></div><br><br clear="all"><br>-- <br><div>Billy Okal</div><div>Jacobs University Bremen</div><div>----------------------------------------------------------------------------------------------------------------------</div>







"Science without Religion is Lame and Religion without Science is Blind", Albert Einstein<br>
</div>
<br>_______________________________________________<br>
ros-users mailing list<br>
<a href="mailto:ros-users@code.ros.org" target="_blank">ros-users@code.ros.org</a><br>
<a href="https://code.ros.org/mailman/listinfo/ros-users" target="_blank">https://code.ros.org/mailman/listinfo/ros-users</a><br>
<br></blockquote></div><br>
</div></div><br>_______________________________________________<br>
ros-users mailing list<br>
<a href="mailto:ros-users@code.ros.org" target="_blank">ros-users@code.ros.org</a><br>
<a href="https://code.ros.org/mailman/listinfo/ros-users" target="_blank">https://code.ros.org/mailman/listinfo/ros-users</a><br>
<br></blockquote></div><br><br clear="all"><br>-- <br></div></div><font color="#888888">Tully Foote<br>Systems Engineer<br>Willow Garage, Inc.<br><a href="mailto:tfoote@willowgarage.com" target="_blank">tfoote@willowgarage.com</a><br>



(650) 475-2827<br>
</font><br>_______________________________________________<br>
ros-users mailing list<br>
<a href="mailto:ros-users@code.ros.org" target="_blank">ros-users@code.ros.org</a><br>
<a href="https://code.ros.org/mailman/listinfo/ros-users" target="_blank">https://code.ros.org/mailman/listinfo/ros-users</a><br>
<br></blockquote></div><br>
</div></div></blockquote></div><br>
</div></div><br>_______________________________________________<br>
ros-users mailing list<br>
<a href="mailto:ros-users@code.ros.org" target="_blank">ros-users@code.ros.org</a><br>
<a href="https://code.ros.org/mailman/listinfo/ros-users" target="_blank">https://code.ros.org/mailman/listinfo/ros-users</a><br>
<br></blockquote></div><br>