mirror of
https://github.com/YikeStone/ros_arduino_bridge.git
synced 2025-08-03 19:24:09 +05:30
Added default for frame_id parameter
This commit is contained in:
parent
c2614fc25e
commit
6a8f9413b9
@ -119,6 +119,12 @@ class ArduinoROS():
|
||||
params['direction']
|
||||
except:
|
||||
params['direction'] = 'input'
|
||||
|
||||
# Set the frame_id to the base frame if not set
|
||||
try:
|
||||
params['frame_id']
|
||||
except:
|
||||
params['frame_id'] = self.base_frame
|
||||
|
||||
if params['type'].lower() == 'Ping'.lower():
|
||||
sensor = Ping(self.device, name, params['pin'], params['rate'], params['frame_id'])
|
||||
|
Loading…
x
Reference in New Issue
Block a user