28
28
%
29
29
% If you are simulating the robot with Gazebo, remember that it is required
30
30
% to launch Gazebo as follows:
31
- %
31
+ %
32
32
% gazebo -slibgazebo_yarp_clock.so
33
- %
33
+ %
34
34
% and properly set the environmental variable YARP_ROBOT_NAME in the .bashrc.
35
35
36
- % Simulation time in seconds. For long simulations, put an high number
36
+ % Simulation time in seconds. For long simulations, put an high number
37
37
% (not inf) for allowing automatic code generation
38
38
Config.SIMULATION_TIME = 70 ;
39
39
46
46
%
47
47
% 'YOGA': the robot will perform the YOGA++ demo (highly dynamic movements
48
48
% while balancing on one foot and two feet)
49
- %
49
+ %
50
50
% 'COORDINATOR': the robot can either balance on two feet or move from left
51
51
% to right follwing a desired center-of-mass trajectory.
52
- %
52
+ %
53
53
DEMO_TYPE = ' YOGA' ;
54
54
55
55
% Config.SCOPES: debugging scopes activation
68
68
Config.PLOT_INTEGRATION_TIME = false ;
69
69
70
70
% Run robot-specific configuration parameters
71
- run(strcat(' app/robots/' ,getenv(' YARP_ROBOT_NAME' ),' /configRobot.m' ));
72
- run(strcat(' app/robots/' ,getenv(' YARP_ROBOT_NAME' ),' /configStateMachine.m' ));
73
- run(strcat(' app/robots/' ,getenv(' YARP_ROBOT_NAME' ),' /gainsAndReferences.m' ));
71
+ run(strcat(' app/robots/' ,getenv(' YARP_ROBOT_NAME' ),' /configRobot.m' ));
72
+ run(strcat(' app/robots/' ,getenv(' YARP_ROBOT_NAME' ),' /configStateMachine.m' ));
73
+ run(strcat(' app/robots/' ,getenv(' YARP_ROBOT_NAME' ),' /gainsAndReferences.m' ));
74
74
75
75
% Deactivate/activate the internal coordinator
76
76
if strcmpi(DEMO_TYPE , ' COORDINATOR' )
77
77
78
78
Config.COORDINATOR_DEMO = true ;
79
-
79
+
80
80
elseif strcmpi(DEMO_TYPE , ' YOGA' )
81
-
81
+
82
82
Config.COORDINATOR_DEMO = false ;
83
- end
83
+ end
0 commit comments