Skip to content

Conversation

@jhanca-robotecai
Copy link
Collaborator

Allow to rotate object when spawning - added the same way as for SetEntityState, i.e. the rotation vector + angle in deg

Two decals spawned at 5,0,0 no rotation and 7,0,0 with 90 rot around Z:
image

UI (changes marked with red rectangle):
image

Note: PR #7 should be merged first

{
tf2::Quaternion q;

if (axis.length() > 1e-6)
Copy link
Contributor

@arturkamieniecki arturkamieniecki Oct 21, 2025

Choose a reason for hiding this comment

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

I do not understand what this is trying to to do. Is it an epsilon check? If so consider using <limits>.

Copy link
Contributor

@arturkamieniecki arturkamieniecki left a comment

Choose a reason for hiding this comment

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

Overall works fine.

Signed-off-by: Jan Hanca <jan.hanca@robotec.ai>
Signed-off-by: Jan Hanca <jan.hanca@robotec.ai>
@jhanca-robotecai jhanca-robotecai force-pushed the jh/add_spawn_orientation branch from f72ba4a to 33761b9 Compare October 21, 2025 16:48
@jhanca-robotecai jhanca-robotecai marked this pull request as ready for review October 21, 2025 16:48
@jhanca-robotecai
Copy link
Collaborator Author

Rebased and ready for the review

Signed-off-by: Jan Hanca <jan.hanca@robotec.ai>
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