Simscape: how to simulate trajectory/motion in my assembly
Show older comments
Hi, I have been struggling with simulation the motion of my assembly in Simscape: I would like to simulate a trajectory/motion of said asembly to then read the positions from the joints. I cannot figure out how to import this trajectory/motion. How can I do that?
Can I move rigid assembled parts in space to simulate the trajectory of the whole assembly?
5 Comments
Yifeng Tang
on 24 Feb 2025
You may add a 6 DOF joint to the part and send the motion signal to the joint. You can set up the joint to receive prescribed input motion signal.
Elia
on 25 Feb 2025
Yifeng Tang
on 25 Feb 2025
The 6DOF will try to honor the input signal you send in even at time=0. So if the input is indicating a different starting position, the 6DOF may just do that.
A trick you can play is to let the 6DOF joint sense its position, while you run the simulation from the initial condition you want without a position input. You'll then know what is the correct initial position (and orientation) of the 6DOF. Set up your signal to add on to that initial value.
Elia
on 3 Mar 2025
Yifeng Tang
on 5 Mar 2025
Sounds like the assembly isn't put together correctly, or you have some extra DOF that you weren't expecting.
Is it possible to share the model? Hopefully a simple one :)
Answers (0)
Categories
Find more on Assembly in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!