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

Revision history [back]

click to hide/show revision 1
initial version

That is the implementation of the setCommand method. It's just written on one line. Maybe it'll be clearer if it's separated it out onto multiple lines

void setCommand(double command)
{
    assert(cmd_);
    *cmd_ = command;
}

Many times, if a method is short, it's implementation is left in a header (*.h) file.

That is the implementation of the setCommand method. It's just written on one line. Maybe it'll be clearer if it's separated it out onto multiple lines

void setCommand(double command)
{
    assert(cmd_);
    *cmd_ = command;
}

Many times, if a method is short, it's implementation is left in a header (*.h) file.