Anyone know how to set a node’s rotation using the c++ code? the node is just one of any element.
Imagine a series of linked beams. As far as i konw, from the “KU=P” equitions, we can get the displacement vector “U”, but the radian in “U” is not the same as euler angles, so one can not just use euler angle to change a node’s rotation. so how to roate a node?
You can specify to your MechanicalObject (containing the rigid frames) their position and orientation with a quaternion.
I think the ArticulatedSystemMapping is close to what you need but I remember struggling a bit myself using it, but it’s worth having a look (in examples/Components/mapping)
It turns out to be a normal question in field of robot control or computer graphics, i see now. Thanks all the same.
You must be logged in to reply to this topic.
Get involved in this forum: