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

Normalize quaternions #40

Merged
merged 1 commit into from
Jan 5, 2018
Merged

Normalize quaternions #40

merged 1 commit into from
Jan 5, 2018

Conversation

dhood
Copy link
Contributor

@dhood dhood commented Jan 5, 2018

Unnormalised quaternions will give warnings in rviz as of ros-visualization/rviz#1182

I've tested all of the tutorials in this repo now and they don't give warnings anymore.

@dhood dhood self-assigned this Jan 5, 2018
@dhood dhood requested a review from wjwwood January 5, 2018 07:29
Copy link
Member

@wjwwood wjwwood left a comment

Choose a reason for hiding this comment

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

Other than wanting a common API to do this for the messages, lgtm.

quaternion_msg.x *= s
quaternion_msg.y *= s
quaternion_msg.z *= s
quaternion_msg.w *= s
Copy link
Member

Choose a reason for hiding this comment

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

As mentioned in the other thread, we should consider providing a function to do this for users.

Ideally in both C++ and Python, perhaps it could live in sensor_msgs or similar. There's precedence for this (a message package providing extra API to work with certain messages).

Doesn't need to be done right this second, but it should be used here when it is made available.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

yep, agreed

@dhood dhood merged commit 7f1867e into kinetic-devel Jan 5, 2018
@dhood dhood deleted the normalise_quaternions branch January 5, 2018 07:58
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.

None yet

2 participants