Skip to content

Commit

Permalink
[Twin Hammer] [mocap]
Browse files Browse the repository at this point in the history
change health_timeout to prevent force landing
  • Loading branch information
Kaneko committed Jan 22, 2025
1 parent d96de65 commit 1ad9d00
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 2 deletions.
9 changes: 9 additions & 0 deletions robots/twin_hammer/config/mocap.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
sensor_plugin:
mocap:
pos_noise_sigma: 0.0002
angle_sigma: 0.005
acc_bias_noise_sigma: 0.001 # force acc bias estimation by kalman filter
unhealth_level: 3
health_timeout: 1.0
time_sync: false
mocap_sub_name: mocap/pose
3 changes: 2 additions & 1 deletion robots/twin_hammer/launch/include/sensors.launch.xml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@

<!-- basic configuration for sensors (e.g. noise sigma) -->
<rosparam file="$(find aerial_robot_base)/config/sensors/imu/spinal.yaml" command="load" />
<rosparam file="$(find aerial_robot_base)/config/sensors/mocap.yaml" command="load" />
<!-- <rosparam file="$(find aerial_robot_base)/config/sensors/mocap.yaml" command="load" /> -->
<rosparam file="$(find twin_hammer)/config/mocap.yaml" command="load" />
</group>
</launch>
2 changes: 1 addition & 1 deletion robots/twin_hammer/scripts/dummy_mocap_node.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ def main(self):
mocap_msg.pose.orientation.x = 0.0
mocap_msg.pose.orientation.y = 0.0
mocap_msg.pose.orientation.z = 0.0
mocap_msg.pose.orientation.w = 0.0
mocap_msg.pose.orientation.w = 1.0
self.mocap_pub.publish(mocap_msg)

if __name__ == "__main__":
Expand Down

0 comments on commit 1ad9d00

Please sign in to comment.