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'.
entity — ROS or ROS 2 message message structure
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.
Select a Web Site
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: United States.
You can also select a web site from the following list
How to Get Best Site Performance
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.