Skip to content
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

Add trajectory stitching demo objective #84

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

dyackzan
Copy link

@dyackzan dyackzan commented Jan 9, 2025

Adding to get behavior coverage up:
Covers GeneratePointToPointTrajectory and GetTrajectoryStateAtTime

@davetcoleman
Copy link
Member

@MikeWrock does adding an example to kinova_gen3_mujoco_config count towards our behavior coverage %? Should we instead be adding this to lab_sim?

@MikeWrock
Copy link
Collaborator

@davetcoleman I count everything in the entire workspace, not exclusively the lab_sim

joint_state_msg="{target_state}"
velocities="0.0;0.0;0.0;0.0;0.0;0.0;0.0"
/>
<Action
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This behavior is used to get {start_joint_state} above, is this usage here a duplicate? I don't see {joint_state} getting used

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the {target_state} that gets output here gets used in the first GeneratePointToPointTrajectory

target_state="{stitch_target_state}"
joint_trajectory_msg="{stitch_joint_trajectory_msg}"
velocity_scale_factor="1.0"
start_time="0.8"
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should this match the delay so that we stitch in the trajectory from the same point in time?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The delay just needs to be shorter than this value, so 0.8 is fine here with the delay of 0.4 seconds

goal_position_tolerance="0.001000"
joint_trajectory_msg="{joint_trajectory_msg}"
/>
<Decorator ID="Delay" delay_msec="400">
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
<Decorator ID="Delay" delay_msec="400">
<Decorator ID="Delay" delay_msec="800">

Copy link
Author

@dyackzan dyackzan Jan 14, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

See above response on why I don't think this needs to be changed

<Action
ID="ExecuteTrajectoryWithAdmittance"
joint_trajectory_msg="{stitch_joint_trajectory_msg}"
absolute_force_torque_threshold="450;450;450;100;100;100"
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this has to be so high because of a typo using 4ms instead of 8ms, and then the robot has to use a lot of jerk to align on the stitch trajectory. Does that sound likely or is there another reason to have different values?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That shouldn't be an issue as long as the stitching time is in the future when the new trajectory is sent but you're right these values are higher than expected, I'll turn them down a bit

@@ -0,0 +1,144 @@
<?xml version="1.0" encoding="UTF-8" ?>
<root BTCPP_format="4" main_tree_to_execute="Demo Trajectory Stitching">
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd be interested in a better name that tells a story. I think @MikeWrock has some ideas after chatting with him today

ID="Demo Trajectory Stitching"
_description="Take a pointcloud snapshot of the scene with a depth camera"
_favorite="false"
_subtreeOnly="false"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Needs a category - i think it goes in this meta data right?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Added it to the "Application - Advanced Examples" category

@davetcoleman
Copy link
Member

@dyackzan we had a robot config meeting today and this needs to retarget one of our top 3 robot configs - Lab, Hangar, or Factory Sim.

@dyackzan dyackzan force-pushed the add-trajectory-stitching-example branch from 67745ec to 2c92124 Compare January 14, 2025 20:03
@dyackzan dyackzan force-pushed the add-trajectory-stitching-example branch from 2c92124 to 80d180d Compare January 14, 2025 20:07
@dyackzan
Copy link
Author

@dyackzan we had a robot config meeting today and this needs to retarget one of our top 3 robot configs - Lab, Hangar, or Factory Sim.

Factory Sim and Hangar Sim do not exist yet correct?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants