personalrobotics / pymoveit2

Basic Python interface for MoveIt 2 built on top of ROS 2 actions and services
BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

Separated `get_trajectory` logic #5

Closed amalnanavati closed 1 year ago

amalnanavati commented 1 year ago

Previously, the logic to get a trajectory from the response to a planning service call was handled in the plan function. As a result, people who opt for plan_async instead would need to re-implement that logic. This PR breaks that logic off into its own function, so even people who directly call plan_async can get the trajectory.