Hi Nate, can you check that your callback has signature<br>void tCallback (const std_msgs::Float32::ConstPtr& m);<br>(as opposed to just taking in a Float32)<br><br>- Bhaskara<br><br><div class="gmail_quote">On Mon, Apr 5, 2010 at 2:00 PM, Nate R <span dir="ltr"><<a href="mailto:throwawaynate2009@gmail.com">throwawaynate2009@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Hi,<div><br></div><div>I am having a small issue with subscribing to a topic. I wrote a lot of my code on an older install of ROS, and I've since decided to install my package on a 'backup' laptop. Everything compiles and runs fine on the original, but when I try to compile on the backup laptop I get these errors about my subscribers:</div>

<div><br></div><div><div>error: no matching function for call to ‘ros::NodeHandle::subscribe(const char [15], int, void (&)(std_msgs::Float32))’</div><div>/home/ttu/ros/ros/core/roscpp/include/ros/node_handle.h:504: note: candidates are: ros::Subscriber ros::NodeHandle::subscribe(ros::SubscribeOptions&)</div>

</div><div><br></div><div>That error comes from the line of code:</div><div>tSubscriber = tHandle.subscribe("TurnAngle", 1, tCallback);</div><div><br></div><div>Could someone please help me figure out why this is happening. I have verified that the syntax is correct, and it compiles fine on an older svn build of ROS.</div>

<div><br></div><div>I am having the compile problem on a svn build of ROS from today. Also, there are other executables in the package that have the same subscribe syntax, but they compile just fine.</div><div><br></div>
<div>
Thanks,</div><div>Nate</div>
<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></blockquote></div><br><br clear="all"><br>-- <br>Bhaskara Marthi<br>Research Scientist<br>Willow Garage Inc.<br>650-475-2856<br>