Ask Your Question

Revision history [back]

Hmm, I don't see how that ever would have worked. Maybe the author forgot to push a later commit. Anyhow, try changing that block of code to this, which actually compiles and seems to work (at least, data is published--I can't say if it's right or not):

// publish tilt angle and status
if (pub_tilt_angle.getNumSubscribers() > 0)
  std_msgs::Float64 angle_msg; = tilt_angle/2;

if (pub_tilt_status.getNumSubscribers() > 0)
  std_msgs::UInt8 status_msg; = tilt_status;