File tree 1 file changed +5
-0
lines changed
1 file changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -17,6 +17,7 @@ class Model:
17
17
joints : List [Joint ]
18
18
tree : Tree
19
19
NDoF : int
20
+ actuated_joints : List [str ]
20
21
21
22
def __post_init__ (self ):
22
23
"""set the "length of the model as the number of links"""
@@ -41,6 +42,9 @@ def build(factory: ModelFactory, joints_name_list: List[str] = None) -> "Model":
41
42
# if the joints_name_list is None, set it to the list of all the joints that are not fixed
42
43
if joints_name_list is None :
43
44
joints_name_list = [joint .name for joint in joints if joint .type != "fixed" ]
45
+ print (
46
+ f"joints_name_list is None. Setting it to the list of all the joints that are not fixed: { joints_name_list } "
47
+ )
44
48
45
49
# check if the joints in the list are in the model
46
50
for joint_str in joints_name_list :
@@ -69,6 +73,7 @@ def build(factory: ModelFactory, joints_name_list: List[str] = None) -> "Model":
69
73
joints = joints ,
70
74
tree = tree ,
71
75
NDoF = len (joints_name_list ),
76
+ actuated_joints = joints_name_list ,
72
77
)
73
78
74
79
def get_joints_chain (self , root : str , target : str ) -> List [Joint ]:
You can’t perform that action at this time.
0 commit comments