Carma-platform v4.2.0
CARMA Platform is built on robot operating system (ROS) and utilizes open source software (OSS) that enables Cooperative Driving Automation (CDA) features to allow Automated Driving Systems to interact and cooperate with infrastructure and other vehicles through communication.
extract_rpy_from_quat Namespace Reference

Classes

class  Converter
 

Functions

def run (args)
 

Function Documentation

◆ run()

def extract_rpy_from_quat.run (   args)

Definition at line 108 of file extract_rpy_from_quat.py.

108def run(args):
109 rospy.init_node('extract_rpy_from_quat')
110
111 in_topic = args[1]
112 out_topic = args[2]
113 element_accessor = args[3]
114
115 pub = rospy.Publisher(out_topic, PoseArray, queue_size=10)
116
117
118 converter = Converter(pub, element_accessor)
119 callback = converter.handle_individual
120
121 if len(args) == 5:
122 converter = Converter(pub, element_accessor, args[4])
123 callback = converter.handle_list
124
125 print(in_topic)
126 msg_class, _, _ = rostopic.get_topic_class(in_topic, True)
127
128 sub = rospy.Subscriber(in_topic, msg_class, callback)
129
130 r = rospy.Rate(20)
131 while not rospy.is_shutdown():
132 r.sleep()
133
134

References run().

Referenced by run().

Here is the call graph for this function:
Here is the caller graph for this function: