MATLAB: Can’t I use “rigidBodyJoint” function from Robotics System Toolbox

rigidbodyjointRobotics System Toolboxundefined

I can't use the "rigidBodyJoint"-function when constructing a robot, it only says "undefined function or variable". I have MATLAB 2018B with Robotics System Toolbox 2.1 (2018B version) installed. I can use other functions from the toolbox, such as "rigidBody" and "rigidBodyTree". What could be the problem?

Best Answer

Hello Elin,
If you are looking at the documentation page for rigidBodyJoint in the current release (R2019b), there's a compatibility section that notes this class is a new name for what used to be called robotics.Joint in older releases. I would suggest always using the documentation for the release you are working in to avoid these types of issues (R2018b robotics.Joint page).
-Cam