Template Function ros_babel_fish::invoke_for_value_message(const Message&, Callable&&, Args&&…)

Function Documentation

template<typename Callable, typename ...Args>
auto ros_babel_fish::invoke_for_value_message(const Message &msg, Callable &&f, Args&&... args)

Invokes the given functor with the given value message casted to the actual type of the given message and the optionally passed additional arguments.

Throws:

BabelFishException – If the message is not a ValueMessage.

Returns:

The return value of the invoked method.