ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange |
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.
2 | No.2 Revision |
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.