<div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div class="im"><br>
</div>The first error is still present for me, though:<br>
<div class="im"><br>
/home/bouffard/dev/ros/ros_flyer/flyer_controller/nodes/controller.cpp:<br>
</div>In member function ‘void<br>
flyer_controller::Controller::controlModesStatusCallback(const<br>
ros::MessageEvent<const<br>
<div class="im">flyer_controller::control_mode_status_<std::allocator<void> > >&)’:<br>
</div>/home/bouffard/dev/ros/ros_flyer/flyer_controller/nodes/controller.cpp:198:<br>
<div class="im">error: invalid initialization of reference of type ‘const<br>
flyer_controller::control_mode_statusPtr&’ from expression of type<br>
‘boost::shared_ptr<const<br>
flyer_controller::control_mode_status_<std::allocator<void> > >’<br></div></blockquote><div><br></div><div>The error is saying that you're initializing a reference to a pointer from a reference to a const pointer.  It's an equivalent error to this:</div>

<div><br></div><div>const char* foo = "hello";</div><div>char* bar = foo;</div><div><br></div><div>blah.cpp:4: error: invalid conversion from ‘const char*’ to ‘char*’</div><div><br></div><div>In this case you need to be using:</div>

<div><meta http-equiv="content-type" content="text/html; charset=utf-8">const flyer_controller::control_mode_status<b>Const</b>Ptr& msg = event.getMessage();</div><div><br></div><div>Josh</div></div>