Skip to content

Commit

Permalink
piymav na bug
Browse files Browse the repository at this point in the history
  • Loading branch information
ZharkovKirill committed Nov 1, 2023
1 parent 64c4bb4 commit 0382ba3
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion app/hyperparameters.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
TENDON_CONST = -5
TENDON_DISCRETE_FORCES = [10, 15, 20]

TIME_STEP_SIMULATION = 0.0001
TIME_STEP_SIMULATION = 0.001
GRASP_TIME = 5
FORCE_TEST_TIME = 5
TIME_SIMULATION = 10
Expand Down
2 changes: 1 addition & 1 deletion app/mcts_run_setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ def config_tendon(grasp_object_blueprint):
hp.FINAL_POSITION_CRITERION_WEIGHT)
tendon_controller_cfg = get_tendon_cfg()
tendon_optivar = TendonForceOptiVar(tendon_controller_cfg, simulation_rewarder, -45)
tendon_optivar.is_vis = True
tendon_optivar.is_vis = False
brute_tendon = BruteForceOptimisation1D(hp.TENDON_DISCRETE_FORCES, [simulation_manager],
tendon_optivar,
num_cpu_workers=1)
Expand Down
7 changes: 4 additions & 3 deletions app/one_graph_simulation.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

from rostok.library.obj_grasp.objects import get_object_sphere
from rostok.library.rule_sets.simple_designs import (
get_three_link_one_finger, get_three_link_one_finger_independent)
get_three_link_one_finger, get_three_link_one_finger_independent, get_two_link_three_finger, )

# create blueprint for object to grasp
grasp_object_blueprint = get_object_sphere(0.05)
Expand All @@ -13,6 +13,7 @@
control_optimizer = config_tendon(grasp_object_blueprint)

graph = get_three_link_one_finger_independent()
graph = get_three_link_one_finger()
graph = graph = get_two_link_three_finger()

control_optimizer.calculate_reward(graph)
rewsss = control_optimizer.calculate_reward(graph)
pass

0 comments on commit 0382ba3

Please sign in to comment.