IMU - AtlasBuggy/DuneBuggyROS Wiki

IMU For DuneBuggy

To run

run roslaunch imu_atlas.launch

Subscriber

subscriber.py subscribes to serial_node.py (named under topic imu)

Publisher

serial_node.py in rosserial_python - publishes to subscriber.py

Details

Parses imu data from arduino and serials to terminal screen. Below is how subscriber formats published information

dataLines = data.data.split()

line = []

for i in range(len(dataLines)):

    if ":" in dataLines[i]: dataLines[i] = dataLines[i][0]

print(dataLines)

Example

For instance, per line would print to console:

['X', '158.5625','Y','5.8125','Z','25.9375']