Simulink simscape multibody: Actuating a joint with changing mode
21 views (last 30 days)
Show older comments
I am using the simulink library simscape multibody and I am trying to send actuation commands to a joint that its mode is provided by input.
At the start of the model run the joint mode is disengaged and later on it is changed to engaged, this results with an error, because a disengaged joint cannot be actuated.
How can I actuate the joint from the moment it becomes engaged and not beforehand?
In addition, how can I deal with errors resulting from a non-zero velocity of the blocks connected to the joint at the moment of the joint being engaged (which is a required state of the system) while I am trying to command actuations to the joint?
0 Comments
Answers (1)
Nathan Hardenberg
on 11 Jul 2023
Here are my experiences using joint modes:
Disengaging
Disengaging after a certain amount of time works the best. If your joint is actuated then disengaging/being disengaged does not work, like you describe. I use a quite good workaround where I place a "Weld Joint" before the actuated Joint and disengage that. In practice it is the same result.
Mode: Provided by Input | Step from 0 to -1
Engaging
When starting out as disengaged, the placement of the follower part is not really determent, since the joint is disengaged. When testing the "floating"-body was placed with the R-coordinate system at the world-origin. The moment you are trying to engage the base and the follower frame should have the same orientation and position (and velocity?). Otherwise the following error message gets displayed:
Error:An error occurred while running the simulation and the simulation was terminated
Caused by:
['modelName/Solver Configuration']: The position components of the kinematic constraints ...
of the mechanism cannot be satisfied when attempting to transition joints from disengaged ...
to normal mode. This is more likely to occur for large rotation errors compared to large ...
translation errors. Consider reducing the error in those joints before attempting the ...
transition or consider increasing the joint mode transition nonlinear iterations parameter ...
in the associated Mechanism Configuration block.
By testing with an ideal example along one axis, I found out that an angle error of about 10° is working fine and I found no upper limit on translational displacement. This changes when an error occurs on multiple axis, but I did not investigate further. Less error should result in a higher chance that it works though.
I attached an example for engaging and then starting to rotate, which is very simple. But to be honest I did not get it to work with a more complicated setup. Still, I recommend trying.
0 Comments
See Also
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!