-
Notifications
You must be signed in to change notification settings - Fork 101
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
adding trigger call to animations if (batch_publishing_enabled_) #36
adding trigger call to animations if (batch_publishing_enabled_) #36
Conversation
src/moveit_visual_tools.cpp
Outdated
@@ -438,7 +438,8 @@ bool MoveItVisualTools::publishAnimatedGrasps(const std::vector<moveit_msgs::Gra | |||
break; | |||
|
|||
publishAnimatedGrasp(possible_grasps[i], ee_jmg, animate_speed); | |||
|
|||
if (batch_publishing_enabled_) | |||
trigger(); | |||
ros::Duration(0.1).sleep(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
side note: this sleep should be customizable - e.g. pause_between_grasps
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we reuse animate_sleep?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
sure
src/moveit_visual_tools.cpp
Outdated
@@ -438,7 +438,8 @@ bool MoveItVisualTools::publishAnimatedGrasps(const std::vector<moveit_msgs::Gra | |||
break; | |||
|
|||
publishAnimatedGrasp(possible_grasps[i], ee_jmg, animate_speed); | |||
|
|||
if (batch_publishing_enabled_) | |||
trigger(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
interesting. it seems to me this trigger actually belongs inside publishAnimatedGrasp()
because it has its own for-loop that publishes the motion of the end effector. thoughts?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good point. Will change accordingly
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
@mlautman Did you notice the " // Display Grasp Score" feature inside animate grasps? |
@davetcoleman ready for merge? |
i don't see any pushed updates to the code |
43a4da0
to
12b6423
Compare
My bad. I hadn't pushed |
cherry picked |
No description provided.