File tree 1 file changed +5
-8
lines changed
1 file changed +5
-8
lines changed Original file line number Diff line number Diff line change 20
20
21
21
UI.t = 0 : UI .timestep : UI .motion_duration ;
22
22
23
- %% ROS
24
- rosinit(UI .masterURI )
25
-
26
23
%% Get RBT
27
- robot = loadrobot(' frankaEmikaPanda' , ' DataFormat' , ' column' );
24
+ [robot , robotData ] = loadrobot(' frankaEmikaPanda' ,...
25
+ ' DataFormat' , ' column' ,...
26
+ ' Gravity' , [0 , 0 , - 9.80665 ]);
28
27
removeBody(robot ,' panda_leftfinger' );
29
28
removeBody(robot ,' panda_rightfinger' );
30
29
panda_fingertipcenter = rigidBody(' panda_fingertipcenter' );
31
30
setFixedTransform(panda_fingertipcenter .Joint , [0 pi - 0.1 0 ], ' dh' );
32
31
addBody(robot ,panda_fingertipcenter ,' panda_hand' );
33
32
% interactiveRigidBodyTree(robot);
34
33
35
- robot.Gravity = [0 , 0 , - 9.80665 ];
36
-
37
-
38
34
%% Get data
39
35
load mean_var_linconstraint_rotated_z.mat
40
36
51
47
52
48
%% Null space
53
49
54
-
50
+ %% ROS
51
+ rosinit(UI .masterURI )
55
52
56
53
57
54
You can’t perform that action at this time.
0 commit comments