Skip to content

Commit

Permalink
Improve robot example
Browse files Browse the repository at this point in the history
  • Loading branch information
fdevinc committed Jul 15, 2024
1 parent b089e08 commit 44c0ef2
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions example/rbd/robot.example.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -109,8 +109,7 @@ int main() {
}

UNGAR_LOG(info, "Computing the center of mass acceleration...");
auto res = robot.Compute(qs::com_acceleration);
res.At(q, v, a);
robot.Compute(qs::com_acceleration).At(q, v, a);
UNGAR_LOG(info, "Done. Center of mass acceleration:\n{}", robot.Get(qs::com_acceleration));
UNGAR_LOG(info, Utils::DASH_LINE_SEPARATOR);

Expand Down

0 comments on commit 44c0ef2

Please sign in to comment.