Module: OroGen::TypekitMarshallers::ROS::TypeExtension

Defined in:
lib/orogen/marshallers/ros.rb

Instance Method Summary collapse

Instance Method Details

#call_from_ros(value_var, ros_var) ⇒ Object

Call to generate the C++ call required to convert this type from the corresponding ROS message.

representing the typegen type representing the ROS message

Parameters:

  • value_var (String)

    the name of the C++ local variable

  • ros_var (String)

    the name of the C++ local variable



504
505
506
# File 'lib/orogen/marshallers/ros.rb', line 504

def call_from_ros(value_var, ros_var)
    "fromROS(#{value_var}, #{ros_var})"
end

#call_to_ros(ros_var, value_var) ⇒ Object

Call to generate the C++ call required to convert this type into the corresponding ROS message.

representing the ROS message representing the typegen type

Parameters:

  • ros_var (String)

    the name of the C++ local variable

  • value_var (String)

    the name of the C++ local variable



493
494
495
# File 'lib/orogen/marshallers/ros.rb', line 493

def call_to_ros(ros_var, value_var)
    "toROS(#{ros_var}, #{value_var})"
end