Skip to content

Instantly share code, notes, and snippets.

@grassjelly
Last active April 27, 2020 01:20
Show Gist options
  • Save grassjelly/7d0bdce40c129ed36614c71c74cab4f0 to your computer and use it in GitHub Desktop.
Save grassjelly/7d0bdce40c129ed36614c71c74cab4f0 to your computer and use it in GitHub Desktop.
Launch file to keep imu_filter_madgwick from using sensor_msgs/MagneticField/ on distros higher than Indigo
<launch>
<!--serial communication between arduino and pc via usb /-->
<node name="arduino_serial_node" pkg="rosserial_python" type="serial_node.py" output="screen">
<param name="port" value="/dev/linobase" />
<param name="baud" value="57600" />
</node>
<node pkg="ros_arduino_imu" type="raw_imu_bridge_node" name="raw_imu_bridge" output="screen" respawn="false">
<rosparam>
imu/gyroscope_bias: {x: -0.013545, y: 0.056887, z: 0.012693 }
imu/accelerometer_bias: {x: -0.422578, y: 0.053516, z: -0.310391 }
</rosparam>
<param name="imu/perform_calibration" value="false" />
</node>
<node pkg="imu_filter_madgwick" type="imu_filter_node" name="imu_filter_madgwick" output="screen" respawn="false" >
<param name="fixed_frame" value="odom" />
<param name="use_mag" value="true" />
<param name="use_magnetic_field_msg" value="false" />
</node>
<node name="lino_base_node" pkg="linorobot" type="lino_base_node"></node>
</launch>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment