MATLAB Answers

1

Moving Frames in Simscape Multibody without associated mass and moment of inertia

Asked by Maximilian Stölzle on 5 Aug 2018
Latest activity Answered by Steve Miller on 1 Apr 2019
Hi,
I'm currently building a nonlinear model of a motorcycle in Simscape Multibody. I have the following problem:
  • The rear frame of the motorcycle is connected to the world coordinate system with a 6 degrees of freedom joint, so that it can move freely in the world
  • For sensing and camera purposes, I want to create a frame, which has the same alignment of the x-axis as the moving rear frame of the motorcycle, but itself is not translating and thus has its origin in the world coordinate system.
I've already tried several ways:
  • Sensing the rotation of a rotation joint and connect the physical signal to the actuator port of another rotation joint, which leads to the error, that this type of physical connection is not allowed
  • Adding a rotation joint between the camera frame and the world coordinate system and an angle constraint between the camera frame and the motorcycle. But this leads to the error ".. degenerate mass distribution on its follower side.". If I connect a mass with a moment of inertia to the camera frame, everything works, but this doesn't correspond to the reality, as the motorcycle then has to put on a moment to move the camera frame.
There has to be a way to solve this properly!
Thanks for your help.
Best regards,
Maximilian

  0 Comments

Sign in to comment.

1 Answer

Answer by Steve Miller on 1 Apr 2019

Hi,
When you define a dynamic camera in Simscape Multibody, you can specify its location and aim axis independently. You can choose to have it located at world and have its X-axis along the axis of the frame attached to the motorcycle. The vertical axis of the camera can be associated with yet another frame, though I expect you would pick World or the frame of your motorcycle. You should not need any additional joints.
--Steve

  0 Comments

Sign in to comment.