Skip to content

Commit

Permalink
remove/fix comments
Browse files Browse the repository at this point in the history
  • Loading branch information
LoreMoretti committed Sep 27, 2024
1 parent 2877e7b commit becc9dc
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 30 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -279,11 +279,6 @@ def generate(
t = t + dt
motor_current = motor_current + dt * speed

# import matplotlib.pyplot as plt
# plt.figure(figsize=(10, 4)) # Create a new figure with a specific size
# plt.plot(np.array(trajectory), marker='o') # Plot the data
# plt.show() # Show the plot

return trajectory

def create_starting_points(
Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,8 @@
robot_name ergocubSim

# The joints order affects the order of the way points.
# The last joint is the joint moved first. The first joint is the joint moved last.
# joints_list ("r_hip_pitch", "r_hip_roll", "r_hip_yaw", "r_knee", "r_ankle_pitch", "r_ankle_roll")
joints_list ("r_ankle_roll", "l_ankle_roll")

# remote_control_boards ("right_leg")
remote_control_boards ("left_leg","right_leg")
positioning_duration 3.0 #in seconds
positioning_tolerance 0.05 #in seconds
position_direct_max_admissible_error 0.1 #in seconds
positioning_tolerance 0.05 #in radians
position_direct_max_admissible_error 0.1 #in radians
Original file line number Diff line number Diff line change
Expand Up @@ -11,26 +11,12 @@ min_frequency ( 0.05)
max_frequency ( 0.45)
frequency_decrement ( 0.1 )

# (hip_yaw, knee, ankle_pitch, ankle_roll, )
# min_delta_current ( 0.1, 0.05, 0.7 , 0.1, )
# max_delta_current ( 2.0, 1.7, 1.8 , 1.5, )
# delta_current_increment ( 0.05, 0.08, 0.2 , 0.05, )
# min_frequency ( 0.1, 0.1, 0.05, 0.1, )
# max_frequency ( 0.8, 0.7, 0.45, 0.8, )
# frequency_increment ( 0.1, 0.07, 0.1 , 0.1, )

[RAMP]
initial_speed (0.15)
final_speed (0.40)
speed_increment (0.08)
max_current_increment (2.00)

# ( knee, ankle_pitch, ankle_roll, )
; initial_speed ( 0.01, 0.15, 0.01, )
; final_speed ( 0.3, 0.40, 0.4, )
; speed_increment ( 0.05, 0.08, 0.03, )
; max_current ( 1.2, 2.00, 1.6, )

[include ROBOT_CONTROL "./blf_motor_current_tracking/robot_control.ini"]
[include SENSOR_BRIDGE "./blf_motor_current_tracking/sensor_bridge.ini"]
[include DATA_LOGGING "./blf_motor_current_tracking/data_logging.ini"]
Original file line number Diff line number Diff line change
@@ -1,11 +1,8 @@
robot_name ergocub

# The joints order affects the order of the way points.
# The last joint is the joint moved first. The first joint is the joint moved last.
# joints_list ("r_hip_pitch", "r_hip_roll", "r_hip_yaw", "r_knee", "r_ankle_pitch", "r_ankle_roll")
joints_list ("r_ankle_pitch")

remote_control_boards ("right_leg")
positioning_duration 3.0 #in seconds
positioning_tolerance 0.05 #in seconds
position_direct_max_admissible_error 0.1 #in seconds
positioning_tolerance 0.05 #in radians
position_direct_max_admissible_error 0.1 #in radians

0 comments on commit becc9dc

Please sign in to comment.