-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
0230e22
commit e21329b
Showing
7 changed files
with
53 additions
and
357 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,22 @@ | ||
from mcts_run_setup import config_tendon | ||
import tendon_graph_evaluators | ||
|
||
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_two_link_three_finger, ) | ||
get_three_link_one_finger, | ||
get_three_link_one_finger_independent, | ||
get_two_link_three_finger, | ||
) | ||
if __name__ == "__main__": | ||
# create blueprint for object to grasp | ||
grasp_object_blueprint = get_object_sphere(0.05, mass=0.2) | ||
|
||
# create blueprint for object to grasp | ||
grasp_object_blueprint = get_object_sphere(0.05, mass=0.2) | ||
control_optimizer = tendon_graph_evaluators.evaluator_tendon_standart_parallel | ||
|
||
# create reward counter using run setup function | ||
# control_optimizer = config_with_const_troques(grasp_object_blueprint) | ||
|
||
control_optimizer = config_tendon(grasp_object_blueprint) | ||
|
||
graph = get_three_link_one_finger_independent() | ||
graph = graph = get_two_link_three_finger() | ||
graph = get_three_link_one_finger_independent() | ||
graph = graph = get_two_link_three_finger() | ||
|
||
rewsss = control_optimizer.calculate_reward(graph) | ||
pass | ||
rewsss = control_optimizer.calculate_reward(graph) | ||
|
||
first_object = control_optimizer.prepare_reward.reward_one_sim_scenario( | ||
x=rewsss[1][0], graph=graph, sim=control_optimizer.simulation_scenario[0]) | ||
print(rewsss) |
Oops, something went wrong.