Trajopt: Setting an Initial Trajectory as a "Warm Start"? #278
Unanswered
PikaTheLeg
asked this question in
Q&A
Replies: 1 comment
-
In your case you have a few options. Write a simple planner which does what you want with the provided trajectory. The other option is to manual create the full composite program based on your joint trajectory and assign the state as a seed to the cartesian waypoint. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Currently been using code based around the basic_cartesian_examples, which seem to use a combination of profiles and taskflow to setup the problem and solve. I am trying to feed TrajOpt a trajectory which I have saved from previous calls of TrajOpt and saved using the format of trajectory_msgs/JointTrajectory, but I only want this trajectory to be a "guiding" hand only - which means the trajectory I feed is similar to the start and end goal, but not necessarily correct.
I had a look through a few potential functions I might need, such as ProblemConstructionInfo's init_info.data (TrajArray), but I am currently struggling figuring out how to access those with just profiles. Perhaps it is something that I need to define in the program (CompositeInstruction) itself?
Here is what I currently got to get TrajOpt running with the "default" version used in basic_cartesian_examples:
It's somewhat similar to defining a seed trajectory in Issue #199, except that I already have a warm trajectory without needing to use another planner, I am simply feeding it in as an input.
Beta Was this translation helpful? Give feedback.
All reactions