VR RigidBodyTree
(To be removed) Visualize Robotics System Toolbox
rigidBodyTree
objects in Simulink
VR RigidBodyTree will be removed in a future release. For more information, see Version History.
Libraries:
Simulink 3D Animation
Description
Use the VR RigidBodyTree block to visualize rigidBodyTree
objects from Robotics System Toolbox™ in the Simulink®
3D Animation™ viewer.
Ports
Input
Input 1 — Joint Positions
scalar | vector
Robot configuration that solves the desired end-effector pose,
specified as a vector. A robot configuration is a vector of joint
positions for the rigidBodyTree
model. The number of
positions is equal to the number of non-fixed joints in the
rigidBodyTree
parameter.
Data Types: single
| double
Parameters
Associated VRML File — 3D World
3D world file name
Specify the virtual world in which the rigidBodyTree
is
visualized
Parent node (leave empty for root) — Scene hierarchy location
character vector | string
Specify the location of the rigidBodyTree
object in the
scene hierarchy. For more information on scene hierarchy, see Create a Virtual World.
Rigid Body Tree — robot pose
rigidBodyTree
Specify the name of the Robotics System Toolbox
rigidBodyTree
object to be used in the virtual world. If
a robot with an identical name is already present in the virtual world, it
is used for visualization by default.
You can enable the Always use robot definition from the
RigidBodyTree object parameter to overwrite the existing
robot, if present, with the robot specified by the
rigidBodyTree
object.
Always use robot definition from the RigidBodyTree object — create robot
‘off’
(default) | ’on’
Enable this parameter to always create a robot from the
rigidBodyTree
object specified by the Rigid
Body Tree parameter.
By default, the virtual world uses an existing robot by the same name, if it exists.
Sample time — Block sample time for simulation
0.1 (default) | scalar | vector
Specify the sample time for the block, or specify -1
to inherit the sample
time.
Ensure that a viewer window is open during simulation — Open 3D world viewer
‘off’
(default) | ’on’
Enable this parameter to ensure that the Simulink 3D Animation Viewer is open during simulation.
Extended Capabilities
C/C++ Code Generation
Generate C and C++ code using Simulink® Coder™.
Actual data type or capability support depends on block implementation.
Version History
Introduced in R2018bR2023b: To be removed
The VR RigidBodyTree
will be removed in a future
release. Instead, use sim3d
classes and Simulation 3D blocks to
interface MATLAB® and Simulink with the Unreal Engine® 3D simulation environment. To get started, see Create 3D Simulations in Unreal Engine Environment.
MATLAB Command
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: .
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.
Americas
- América Latina (Español)
- Canada (English)
- United States (English)
Europe
- Belgium (English)
- Denmark (English)
- Deutschland (Deutsch)
- España (Español)
- Finland (English)
- France (Français)
- Ireland (English)
- Italia (Italiano)
- Luxembourg (English)
- Netherlands (English)
- Norway (English)
- Österreich (Deutsch)
- Portugal (English)
- Sweden (English)
- Switzerland
- United Kingdom (English)
Asia Pacific
- Australia (English)
- India (English)
- New Zealand (English)
- 中国
- 日本Japanese (日本語)
- 한국Korean (한국어)