tfentity = rosApplyTransform(tfmsg,entity)
applies the transformation represented by the 'TransformStamped'
ROS or ROS 2 message to the input message structure
entity.
This function determines the message type of entity and
applies the appropriate transformation method to it.
Note that the vertical direction in the point cloud is represented by the y-axis. You can transform the point cloud such that the z-axis represents the vertical direction. To accomplish this transformation, use the geometry_msgs/TransformStamped message, tfMsg, which contains a transform that rotates the points to a target frame that is 90 degrees in the clockwise direction along x-axis. Read the translation and rotation values from tfMsg using the rosReadTransform function.
Transformation message, specified as a TransformStamped
ROS or ROS 2 message handle. The tfmsg is a ROS or ROS
2 message of type:
'geometry_msgs/TransformStamped'.
ROS or ROS 2 message, specified as a message structure.
You clicked a link that corresponds to this MATLAB command:
Run the command by entering it in the MATLAB Command Window.
Web browsers do not support MATLAB commands.
Sélectionner un site web
Choisissez un site web pour accéder au contenu traduit dans votre langue (lorsqu'il est disponible) et voir les événements et les offres locales. D’après votre position, nous vous recommandons de sélectionner la région suivante : .
Vous pouvez également sélectionner un site web dans la liste suivante :
Comment optimiser les performances du site
Pour optimiser les performances du site, sélectionnez la région Chine (en chinois ou en anglais). Les sites de MathWorks pour les autres pays ne sont pas optimisés pour les visites provenant de votre région.