Skip to content
Snippets Groups Projects
Commit 5cb14f6e authored by Fabian Reister's avatar Fabian Reister
Browse files

example: minor fix

parent b931229d
No related branches found
No related tags found
1 merge request!262Feature/virtual robot writer
......@@ -133,7 +133,7 @@ namespace armarx::virtual_robot_writer_example
const float t = float((now - start).toSecondsDouble());
// move joints at certain frequency
const float m = (1 + std::sin(t / (M_2_PIf32))) / 2; // in [0,1]
const float m = (1 + std::sin(t / (M_2_PIf32 * 10))) / 2; // in [0,1]
auto jointValues = robot->getJointValues();
for (auto& [k, v] : jointValues)
......@@ -152,7 +152,7 @@ namespace armarx::virtual_robot_writer_example
robot->setGlobalPose(simox::math::pose(Eigen::Vector3f(1000, 0, 0)));
robot->setJointValues(jointValues);
ARMARX_CHECK(virtualRobotWriterPlugin->get().storeState(*robot));
ARMARX_CHECK(virtualRobotWriterPlugin->get().storeState(*robot, armarx::Clock::Now()));
}
} // namespace armarx::virtual_robot_writer_example
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment