Skip to content

Commit

Permalink
Merge pull request #10 from iretiayo/annealing_params
Browse files Browse the repository at this point in the history
adding ability to pass in parameters for the simulated annealing process
  • Loading branch information
jvarley authored Feb 16, 2018
2 parents caf0d37 + 619b82c commit 0effbd5
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/graspit_commander/graspit_commander.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
Robot,
SearchContact,
SearchSpace,
SimAnnParams,
PlanGraspsAction,
PlanGraspsGoal
)
Expand Down Expand Up @@ -333,7 +334,8 @@ def planGrasps(cls,
search_contact=SearchContact(SearchContact.CONTACT_PRESET),
max_steps=70000,
feedback_cb=None,
feedback_num_steps=-1):
feedback_num_steps=-1,
sim_ann_params=SimAnnParams()):
try:
rospy.init_node(cls.ROS_NODE_NAME, anonymous=True)
except ROSException:
Expand All @@ -348,7 +350,8 @@ def planGrasps(cls,
search_space=search_space,
search_contact=search_contact,
max_steps=max_steps,
feedback_num_steps=feedback_num_steps)
feedback_num_steps=feedback_num_steps,
sim_ann_params=sim_ann_params)

client.send_goal(goal, feedback_cb=feedback_cb)
client.wait_for_result()
Expand Down

0 comments on commit 0effbd5

Please sign in to comment.