Skip to content

Commit

Permalink
Merge pull request #992 from tue-robotics/fix/private_arms_easy
Browse files Browse the repository at this point in the history
Fix/private arms easy
  • Loading branch information
LarsJanssenTUe committed Feb 1, 2020
2 parents 21f290b + dfb4d3f commit 678466a
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions robot_skills/src/robot_skills/robot.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,13 @@ def add_arm_part(self, arm_name, arm_part):
self.parts[arm_name] = arm_part
self._arms[arm_name] = arm_part

@property
def arms(self):
# ToDo: remove this property per September 2020
rospy.logwarn('Arms should be private and therefore not be called directly. The only interface that should be '
'used is the get_arm function. Change your code, you are invading private property!')
return self._arms

def configure(self):
"""
This should be run at the end of the constructor of a child class.
Expand Down

0 comments on commit 678466a

Please sign in to comment.