ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question

Revision history [back]

rosserial does not implement operators and thus the issue.

simpler solution is to replace

dt = (current_time - last_time).toSec();

with

dt = (current_time.toSec() - last_time.toSec());