Skip to content

Commit 1c40142

Browse files
author
nuofan
committed
update for joint name convension to make it follows WYSWYG principle
1 parent d0dbfbb commit 1c40142

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

Add-IN/ACDC4Robot/core/joint.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,10 @@ def get_name(self):
3131
"""
3232
# joint names inside each occurrence are identical
3333
# but joint names in different occurrences can be the same, in which makes conflict
34-
parent_name = utils.get_valid_filename(self.parent.fullPathName) # inorder to fix joint's name confliction
35-
name = parent_name + "_" + utils.get_valid_filename(self.name)
34+
# parent_name = utils.get_valid_filename(self.parent.fullPathName) # inorder to fix joint's name confliction
35+
# name = parent_name + "_" + utils.get_valid_filename(self.name)
36+
# output name is consistent with the name in Fusion
37+
name = utils.get_valid_filename(self.name)
3638
return name
3739

3840
def get_parent(self):

0 commit comments

Comments
 (0)