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_INDUSTRIAL_ROBOT_CLIENT_ROBOT_GROUP_H 00035 #define MOTOMAN_DRIVER_INDUSTRIAL_ROBOT_CLIENT_ROBOT_GROUP_H 00036 00037 #include <vector> 00038 #include <string> 00039 00040 class RobotGroup 00041 { 00042 public: 00043 RobotGroup() {}; 00044 00045 std::vector<std::string> get_joint_names() 00046 { 00047 return this->joint_names_; 00048 } 00049 00050 std::string get_name() 00051 { 00052 return this->name_; 00053 } 00054 00055 std::string get_ns() 00056 { 00057 return this->ns_; 00058 } 00059 00060 int get_group_id() 00061 { 00062 return this->group_id_; 00063 } 00064 00065 void set_name(std::string name) 00066 { 00067 this->name_ = name; 00068 } 00069 00070 void set_ns(std::string ns) 00071 { 00072 this->ns_ = ns; 00073 } 00074 00075 void set_group_id(int gid) 00076 { 00077 this->group_id_ = gid; 00078 } 00079 00080 00081 void set_joint_names(std::vector<std::string> jnames) 00082 { 00083 this->joint_names_ = jnames; 00084 } 00085 00086 protected: 00087 std::vector<std::string> joint_names_; 00088 int group_id_; 00089 std::string name_; 00090 std::string ns_; 00091 }; 00092 00093 #endif // MOTOMAN_DRIVER_INDUSTRIAL_ROBOT_CLIENT_ROBOT_GROUP_H