mirror of
https://gitee.com/xiaohuolufeihua/bizhang_-obav.git
synced 2026-05-22 01:12:31 +00:00
topic_listener: allow listening to actuator control groups
This commit is contained in:
@@ -17,7 +17,7 @@ for index,m in enumerate(raw_messages):
|
|||||||
temp_list_floats = []
|
temp_list_floats = []
|
||||||
temp_list_uint64 = []
|
temp_list_uint64 = []
|
||||||
temp_list_bool = []
|
temp_list_bool = []
|
||||||
if("actuator_control" not in m and "pwm_input" not in m and "position_setpoint" not in m):
|
if("pwm_input" not in m and "position_setpoint" not in m):
|
||||||
temp_list = []
|
temp_list = []
|
||||||
f = open(m,'r')
|
f = open(m,'r')
|
||||||
for line in f.readlines():
|
for line in f.readlines():
|
||||||
@@ -55,9 +55,11 @@ for index,m in enumerate(raw_messages):
|
|||||||
|
|
||||||
f.close()
|
f.close()
|
||||||
(m_head, m_tail) = os.path.split(m)
|
(m_head, m_tail) = os.path.split(m)
|
||||||
messages.append(m_tail.split('.')[0])
|
message = m_tail.split('.')[0]
|
||||||
|
if message != "actuator_controls":
|
||||||
|
messages.append(message)
|
||||||
|
message_elements.append(temp_list)
|
||||||
#messages.append(m.split('/')[-1].split('.')[0])
|
#messages.append(m.split('/')[-1].split('.')[0])
|
||||||
message_elements.append(temp_list)
|
|
||||||
|
|
||||||
num_messages = len(messages);
|
num_messages = len(messages);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user