joint_feedback_ex.h
Go to the documentation of this file.
1 /*
2  * Software License Agreement (BSD License)
3  *
4  * Copyright (c) 2014, Fraunhofer IPA
5  * Author: Thiago de Freitas
6  *
7  * All rights reserved.
8  *
9  * Redistribution and use in source and binary forms, with or without
10  * modification, are permitted provided that the following conditions are met:
11  *
12  * * Redistributions of source code must retain the above copyright
13  * notice, this list of conditions and the following disclaimer.
14  * * Redistributions in binary form must reproduce the above copyright
15  * notice, this list of conditions and the following disclaimer in the
16  * documentation and/or other materials provided with the distribution.
17  * * Neither the name of the Fraunhofer IPA, nor the names
18  * of its contributors may be used to endorse or promote products derived
19  * from this software without specific prior written permission.
20  *
21  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
22  * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
23  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
24  * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
25  * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
26  * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
27  * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
28  * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
29  * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
30  * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
31  * POSSIBILITY OF SUCH DAMAGE.
32  */
33 
34 #ifndef MOTOMAN_DRIVER_SIMPLE_MESSAGE_JOINT_FEEDBACK_EX_H
35 #define MOTOMAN_DRIVER_SIMPLE_MESSAGE_JOINT_FEEDBACK_EX_H
36 
37 #ifndef FLATHEADERS
44 #else
45 #include "joint_data.h" // NOLINT(build/include)
46 #include "simple_message.h" // NOLINT(build/include)
47 #include "simple_serialize.h" // NOLINT(build/include)
48 #include "shared_types.h" // NOLINT(build/include)
49 #include "joint_feedback.h" // NOLINT(build/include)
51 #endif
52 
53 #include<vector>
54 
55 namespace industrial
56 {
57 namespace joint_feedback_ex
58 {
59 
61 {
62 public:
69  JointFeedbackEx(void);
74  ~JointFeedbackEx(void);
75 
80  void init();
81 
86  void init(industrial::shared_types::shared_int groups_number,
87  std::vector<industrial::joint_feedback_message::JointFeedbackMessage> joints_feedback_points);
88 
96  {
97  this->groups_number_ = groups_number;
98  }
99 
100  void setJointMessages(std::vector<industrial::joint_feedback_message::JointFeedbackMessage> joint_feedback_messages)
101  {
102  this->joint_feedback_messages_ = joint_feedback_messages;
103  }
104 
105  std::vector<industrial::joint_feedback_message::JointFeedbackMessage> getJointMessages()
106  {
108  }
109 
117  {
118  return this->groups_number_;
119  }
120 
126  void copyFrom(JointFeedbackEx &src);
127 
133  bool operator==(JointFeedbackEx &rhs);
134 
141  // Overrides - SimpleSerialize
144  unsigned int byteLength()
145  {
146  return sizeof(industrial::shared_types::shared_int) +
149  }
150 
151 private:
156 
157  std::vector<industrial::joint_feedback_message::JointFeedbackMessage> joint_feedback_messages_;
158 
160 
162 };
163 } // namespace joint_feedback_ex
164 } // namespace industrial
165 
166 
167 #endif // MOTOMAN_DRIVER_SIMPLE_MESSAGE_JOINT_FEEDBACK_EX_H
void init()
Initializes a empty joint feedback ex.
bool unload(industrial::byte_array::ByteArray *buffer)
bool load(industrial::byte_array::ByteArray *buffer)
check the validity state for a given field
void setGroupsNumber(industrial::shared_types::shared_int groups_number)
Sets groups_number_ Numbers of group, this sets the amount of control groups connected to the control...
industrial::shared_types::shared_int groups_number_
Number of groups attached to the controller.
static const industrial::shared_types::shared_int MAX_NUM_GROUPS
void copyFrom(JointFeedbackEx &src)
Copies the passed in value.
industrial::joint_data::JointData positions_
industrial::shared_types::shared_int getGroupsNumber()
Gets groups_number Gets the number of groups currently running on the controller. ...
std::vector< industrial::joint_feedback_message::JointFeedbackMessage > joint_feedback_messages_
std::vector< industrial::joint_feedback_message::JointFeedbackMessage > getJointMessages()
void setJointMessages(std::vector< industrial::joint_feedback_message::JointFeedbackMessage > joint_feedback_messages)
bool operator==(JointFeedbackEx &rhs)
== operator implementation


motoman_driver
Author(s): Jeremy Zoss (Southwest Research Institute), Ted Miller (MotoROS) (Yaskawa Motoman), Eric Marcil (MotoROS) (Yaskawa Motoman)
autogenerated on Sat May 8 2021 02:27:43