segway_rmp200_status.h
Go to the documentation of this file.
00001 // Copyright (C) 2010-2011 Institut de Robotica i Informatica Industrial, CSIC-UPC.
00002 // Author Jose Luis Rivero
00003 // All rights reserved.
00004 //
00005 // This file is part of iri-ros-pkg
00006 // iri-ros-pkg is free software: you can redistribute it and/or modify
00007 // it under the terms of the GNU Lesser General Public License as published by
00008 // the Free Software Foundation, either version 3 of the License, or
00009 // at your option) any later version.
00010 //
00011 // This program is distributed in the hope that it will be useful,
00012 // but WITHOUT ANY WARRANTY; without even the implied warranty of
00013 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
00014 // GNU Lesser General Public License for more details.
00015 //
00016 // You should have received a copy of the GNU Lesser General Public License
00017 // along with this program. If not, see <http://www.gnu.org/licenses/>.
00018 // 
00019 // IMPORTANT NOTE: This code has been generated through a script from the 
00020 // iri_ros_scripts. Please do NOT delete any comments to guarantee the correctness
00021 // of the scripts. ROS topics can be easly add by using those scripts. Please
00022 // refer to the IRI wiki page for more information:
00023 // http://wikiri.upc.es/index.php/Robotics_Lab
00024 
00025 #ifndef SEGWAY_RMP200_NODE_GUARD_INCLUDE_SEGWAY_RMP200_STATUS_H
00026 #define SEGWAY_RMP200_NODE_GUARD_INCLUDE_SEGWAY_RMP200_STATUS_H
00027 
00028 #include <iridrivers/segway_rmp200.h>
00029 #include <iri_segway_rmp_msgs/SegwayRMP200Status.h>
00030 
00031 namespace segway_rmp200_node 
00032 {
00033    inline iri_segway_rmp_msgs::SegwayRMP200Status
00034    build_ROS_status_msg(const TSegwayRMP200Status segway_status)
00035     {
00036         iri_segway_rmp_msgs::SegwayRMP200Status ROS_status;
00037 
00038         ROS_status.left_wheel_velocity      = segway_status.left_wheel_velocity;
00039         ROS_status.right_wheel_velocity     = segway_status.right_wheel_velocity;
00040         ROS_status.pitch_angle              = segway_status.pitch_angle;
00041         ROS_status.pitch_rate               = segway_status.pitch_rate;
00042         ROS_status.roll_angle               = segway_status.roll_angle;
00043         ROS_status.roll_rate                = segway_status.roll_rate;
00044         ROS_status.yaw_rate                 = segway_status.yaw_rate;
00045         ROS_status.left_wheel_displacement  = segway_status.left_wheel_displ;
00046         ROS_status.right_wheel_displacement = segway_status.right_wheel_displ;
00047         ROS_status.forward_displacement     = segway_status.forward_displ;
00048         ROS_status.yaw_displacement         = segway_status.yaw_displ;
00049         ROS_status.uptime                   = segway_status.uptime;
00050         ROS_status.left_motor_torque        = segway_status.left_torque;
00051         ROS_status.right_motor_torque       = segway_status.right_torque;
00052         ROS_status.ui_battery               = segway_status.ui_battery;
00053         ROS_status.powerbase_battery        = segway_status.powerbase_battery;
00054         ROS_status.operation_mode           = segway_status.operation_mode;
00055         ROS_status.gain_schedule            = segway_status.gain_schedule;
00056 
00057         return ROS_status;
00058     }
00059 }
00060 
00061 #endif


iri_segway_rmp200
Author(s): IRI Lab
autogenerated on Fri Dec 6 2013 20:40:23