4 from nose.tools
import assert_equal
6 from roslib.message
import get_message_class
12 msg = get_message_class(
'jsk_rviz_plugins/OverlayText')
14 assert_equal(field_names, [
'/font',
'/text'])
17 slot_type=
'std_msgs/ColorRGBA')
18 assert_equal(field_names, [
'/bg_color',
'/fg_color'])
20 msg = get_message_class(
'jsk_recognition_msgs/Histogram')
22 assert_equal(field_names, [
'/histogram'])
24 msg = get_message_class(
'diagnostic_msgs/DiagnosticArray')
26 assert_equal(field_names, [
'/header/frame_id',
'/status[]/name',
27 '/status[]/message',
'/status[]/hardware_id',
28 '/status[]/values[]/key',
29 '/status[]/values[]/value'])
def get_slot_type_field_names(msg, slot_type, field_name=None, found=None)
def test_get_slot_type_field_names()