I have a similar use case in Python.  Does rospy provide a way to get this information?<br>- Bhaskara<br><br><div class="gmail_quote">On Fri, Feb 4, 2011 at 11:05 AM, Jeremy Leibs <span dir="ltr"><<a href="mailto:leibs@willowgarage.com">leibs@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;"><div class="im">On Fri, Feb 4, 2011 at 7:51 AM, Brian Gerkey <<a href="mailto:gerkey@willowgarage.com">gerkey@willowgarage.com</a>> wrote:<br>

> On Fri, Feb 4, 2011 at 12:56 AM, Markus Bader <<a href="mailto:markus.bader@tuwien.ac.at">markus.bader@tuwien.ac.at</a>> wrote:<br>
>> I tried using the connection header but for some reasons the topic<br>
>> field "topic" does not exist!<br>
>> I have: callerid, latching, md5sum, message_definition, type.<br>
><br>
> I don't know whether "topic" is supposed be in there, but either way,<br>
> the other technique that I described earlier (passing the topic in as<br>
> an extra argument to the callback) will work for you.<br>
><br>
<br>
</div>You're right.  According to <a href="http://www.ros.org/wiki/ROS/TCPROS" target="_blank">http://www.ros.org/wiki/ROS/TCPROS</a><br>
<br>
The topic is only part of the connection_header that the subscriber<br>
sends.  Sorry for the confusion.  On a side-note it feels like it<br>
would be nice to have access to that information in the data structure<br>
though.<br>
<div><div></div><div class="h5"><br>
>        brian.<br>
><br>
>> Currently I am using the Ubuntu  10.04 with the default package installation<br>
>><br>
>> ros::M_string connection_header = event.getConnectionHeader();<br>
>> for ( ros::M_string::iterator it=connection_header.begin() ; it !=<br>
>> connection_header.end(); it++ )<br>
>>        std::cout << it->first << " => " << it->second << std::endl;<br>
>><br>
>> That code shows me -----------><br>
>><br>
>> callerid => /camera0/image_proc<br>
>> latching => 0<br>
>> md5sum => 1b5cf7f984c229b6141ceb3a955aa18f<br>
>> message_definition => # This message defines meta information for a<br>
>> camera. It should be in ...........<br>
>> type => sensor_msgs/CameraInfo<br>
>><br>
>> Any hints?<br>
>><br>
>> Greetings<br>
>> Markus<br>
>> _______________________________________________<br>
>> ros-users mailing list<br>
>> <a href="mailto:ros-users@code.ros.org">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>
> _______________________________________________<br>
> ros-users mailing list<br>
> <a href="mailto:ros-users@code.ros.org">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>
_______________________________________________<br>
ros-users mailing list<br>
<a href="mailto:ros-users@code.ros.org">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>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>Bhaskara Marthi<br>Research Scientist<br>Willow Garage Inc.<br>650-475-2856<br>