Skip to content

Apply the custom start joint state to the request#109

Merged
AndrejOrsula merged 2 commits intoAndrejOrsula:mainfrom
kinisi-robotics:bugfix/apply_start_state
Aug 27, 2025
Merged

Apply the custom start joint state to the request#109
AndrejOrsula merged 2 commits intoAndrejOrsula:mainfrom
kinisi-robotics:bugfix/apply_start_state

Conversation

@mfinean
Copy link
Contributor

@mfinean mfinean commented Aug 27, 2025

Currently, even when a custom_start_state is passed, the MotionPlanRequest.start_state is left unset, causing MoveIt to see an empty start state and fall back to the planning scene’s current state.

This patch ensures that plan_async explicitly assigns the provided start_joint_state (or defaults to the latest observed joint state), so requests now include the intended start state and avoid adaptor warnings.

Testing this resulted in our plans working as expected when providing a custom start state.

Copy link
Owner

@AndrejOrsula AndrejOrsula left a comment

Choose a reason for hiding this comment

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

Thank you, @mfinean, for your contribution. Yes, that makes sense!

Could you please run it through pre-commit (suggestion above), as I don't have permission to edit your branch? Thanks.

Co-authored-by: Andrej Orsula <orsula.andrej@gmail.com>
@mfinean
Copy link
Contributor Author

mfinean commented Aug 27, 2025

Thank you, @mfinean, for your contribution. Yes, that makes sense!

Could you please run it through pre-commit (suggestion above), as I don't have permission to edit your branch? Thanks.

Yes, sure! I applied your suggestion.

Copy link
Owner

@AndrejOrsula AndrejOrsula left a comment

Choose a reason for hiding this comment

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

Thanks a lot!

@AndrejOrsula AndrejOrsula merged commit 2caf522 into AndrejOrsula:main Aug 27, 2025
2 of 5 checks passed
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.

2 participants