Main Content

rosReadQuaternion

Create MATLAB quaternion object from ROS or ROS 2 message structure

Description

q = rosReadQuaternion(quatMsg) creates a quaternion object from a ROS or ROS 2 geometry_msgs/Quaternion message structure.

Input Arguments

collapse all

ROS or ROS 2 message of type geometry_msgs/Quaternion, specified as a message structure.

Outputs

collapse all

Quaternion, returned as a quaternion (Navigation Toolbox) object.

Extended Capabilities

C/C++ Code Generation
Generate C and C++ code using MATLAB® Coder™.

Version History

Introduced in R2021a