I tried to set the frame of the master node of the constraint to the desired position. Although this moves the node to the desired position it doesn't actuate the beam in any way and the deformed state is straight.
For the constraint I used the following code:
auto constraint = chrono_types::make_shared<ChLinkMateGeneric>();
ChFrame<> frame = constrainedChronoNode->Frame();
ChVector<double> displacementVector(0.1,0,0); //The beam is on the x axis and has a length of 1m
frame.Move(constrainedChronoNode->GetPos() + displacementVector); //we displace the initial frame using the displacement vector
constraint->Initialize(
constrainedChronoNode, truss, false,
constrainedChronoNode->Frame(), frame);
constraint->SetConstrainedCoords(true, true, true, false, false, false);
my_system.Add(constraint);
When visualizing the result what I get can be seen in the following image. Blue is the initial mesh, green is the "ground-truth" and yellow is the deformed state computed using chronos.