diff --git a/RosAria.cpp b/RosAria.cpp index 6aa801a..e91d75d 100644 --- a/RosAria.cpp +++ b/RosAria.cpp @@ -627,7 +627,7 @@ void RosAriaNode::publishRobotInfo() robot_info_msg.twist.angular.z = robot->getRotVel()*M_PI/180; robot_info_msg.state.data = robot_state; robot_info_msg.clutch.data = robot->areMotorsEnabled(); - robot_info_msg.obstacle_detected.data = is_near_obstacle + robot_info_msg.obstacle_detected.data = is_near_obstacle; robot_info_pub.publish(robot_info_msg); }