Roll, Pitch and Yaw of head/neck model for the hole simulation time
Posted: Tue Jul 09, 2019 6:25 am
Hello everybody,
im working with the head and neck model. I want to get the orientations of the model first and calculate the rotational matrix out of it. For this I need the roll, pitch and yaw of the joints for every moment during a simulation. First I thought that I can use a reporter, but unfortunately I can not get them via the outputs of the joints.
With the fallowing code, I can access the value of the angle, but I only get one. And not all of them.
C = h.model.getCoordinateSet().get('roll1'); % roll1
v = C.getStateVariableValue(h.state,'value');
How can I get all of the angles during the hole simulation?
Thanks in advance for your help.
Thomas
im working with the head and neck model. I want to get the orientations of the model first and calculate the rotational matrix out of it. For this I need the roll, pitch and yaw of the joints for every moment during a simulation. First I thought that I can use a reporter, but unfortunately I can not get them via the outputs of the joints.
With the fallowing code, I can access the value of the angle, but I only get one. And not all of them.
C = h.model.getCoordinateSet().get('roll1'); % roll1
v = C.getStateVariableValue(h.state,'value');
How can I get all of the angles during the hole simulation?
Thanks in advance for your help.
Thomas