joint_feedback_ex_message.h
Go to the documentation of this file.
00001 /*
00002  * Software License Agreement (BSD License)
00003  *
00004  * Copyright (c) 2014, Fraunhofer IPA
00005  * Author: Thiago de Freitas
00006  *
00007  * All rights reserved.
00008  *
00009  * Redistribution and use in source and binary forms, with or without
00010  * modification, are permitted provided that the following conditions are met:
00011  *
00012  *  * Redistributions of source code must retain the above copyright
00013  *  notice, this list of conditions and the following disclaimer.
00014  *  * Redistributions in binary form must reproduce the above copyright
00015  *  notice, this list of conditions and the following disclaimer in the
00016  *  documentation and/or other materials provided with the distribution.
00017  *  * Neither the name of the Fraunhofer IPA, nor the names
00018  *  of its contributors may be used to endorse or promote products derived
00019  *  from this software without specific prior written permission.
00020  *
00021  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
00022  * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
00023  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
00024  * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
00025  * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
00026  * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
00027  * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
00028  * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
00029  * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
00030  * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
00031  * POSSIBILITY OF SUCH DAMAGE.
00032  */
00033 
00034 #ifndef MOTOMAN_DRIVER_SIMPLE_MESSAGE_MESSAGES_JOINT_FEEDBACK_EX_MESSAGE_H
00035 #define MOTOMAN_DRIVER_SIMPLE_MESSAGE_MESSAGES_JOINT_FEEDBACK_EX_MESSAGE_H
00036 
00037 #include <vector>
00038 
00039 #ifndef FLATHEADERS
00040 #include "simple_message/typed_message.h"
00041 #include "simple_message/simple_message.h"
00042 #include "simple_message/shared_types.h"
00043 #include "motoman_driver/simple_message/joint_feedback_ex.h"
00044 #else
00045 #include "typed_message.h"
00046 #include "simple_message.h"
00047 #include "shared_types.h"
00048 #include "joint_feedback_ex.h"
00049 #endif
00050 
00051 namespace industrial
00052 {
00053 namespace joint_feedback_ex_message
00054 {
00066 class JointFeedbackExMessage : public industrial::typed_message::TypedMessage
00067 {
00068 public:
00075   JointFeedbackExMessage(void);
00080   ~JointFeedbackExMessage(void);
00088   bool init(industrial::simple_message::SimpleMessage & msg);
00089 
00096   void init(industrial::joint_feedback_ex::JointFeedbackEx &data);
00097 
00102   void init();
00103 
00104   // Overrides - SimpleSerialize
00105   bool load(industrial::byte_array::ByteArray *buffer);
00106   bool unload(industrial::byte_array::ByteArray *buffer);
00107 
00108   unsigned int byteLength()
00109   {
00110     return this->data_.byteLength();
00111   }
00112 
00113   industrial::shared_types::shared_int getGroupsNumber()
00114   {
00115     return this->data_.getGroupsNumber();
00116   }
00117 
00118   std::vector<industrial::joint_feedback_message::JointFeedbackMessage> getJointMessages()
00119   {
00120     return this->data_.getJointMessages();
00121   }
00122 
00123 private:
00124   industrial::joint_feedback_ex::JointFeedbackEx data_;
00125 };
00126 }  // namespace joint_feedback_ex_message
00127 }  // namespace industrial
00128 
00129 
00130 #endif  // MOTOMAN_DRIVER_SIMPLE_MESSAGE_MESSAGES_JOINT_FEEDBACK_EX_MESSAGE_H


motoman_driver
Author(s): Jeremy Zoss (Southwest Research Institute)
autogenerated on Sat Jun 8 2019 19:06:57