Browse Source

d43f data collect node - remove imu

feature/d435f_testrig_tweak
Mohamed Fazil 2 years ago
parent
commit
5011aff3a3
12 changed files with 96804 additions and 13 deletions
  1. +0
    -0
      .idea/.gitignore
  2. +0
    -0
      .idea/inspectionProfiles/profiles_settings.xml
  3. +0
    -0
      .idea/misc.xml
  4. +8
    -0
      .idea/modules.xml
  5. +4
    -0
      .idea/stretch_ros.iml
  6. +1
    -1
      .idea/vcs.xml
  7. +0
    -8
      stretch_camera_testrig/.idea/modules.xml
  8. +33904
    -0
      stretch_camera_testrig/data/testrig_collected_data_202206101538.yaml
  9. +33680
    -0
      stretch_camera_testrig/data/testrig_collected_data_202206101540.yaml
  10. +29184
    -0
      stretch_camera_testrig/data/testrig_collected_data_202206161215.yaml
  11. +8
    -4
      stretch_camera_testrig/nodes/collect_head_calibration_data.py
  12. +15
    -0
      stretch_gazebo/config/dex_wrist.yaml

stretch_camera_testrig/.idea/.gitignore → .idea/.gitignore View File


stretch_camera_testrig/.idea/inspectionProfiles/profiles_settings.xml → .idea/inspectionProfiles/profiles_settings.xml View File


stretch_camera_testrig/.idea/misc.xml → .idea/misc.xml View File


+ 8
- 0
.idea/modules.xml View File

@ -0,0 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="ProjectModuleManager">
<modules>
<module fileurl="file://$PROJECT_DIR$/.idea/stretch_ros.iml" filepath="$PROJECT_DIR$/.idea/stretch_ros.iml" />
</modules>
</component>
</project>

stretch_camera_testrig/.idea/stretch_camera_testrig.iml → .idea/stretch_ros.iml View File

@ -5,4 +5,8 @@
<orderEntry type="inheritedJdk" /> <orderEntry type="inheritedJdk" />
<orderEntry type="sourceFolder" forTests="false" /> <orderEntry type="sourceFolder" forTests="false" />
</component> </component>
<component name="PyDocumentationSettings">
<option name="format" value="PLAIN" />
<option name="myDocStringFormat" value="Plain" />
</component>
</module> </module>

stretch_camera_testrig/.idea/vcs.xml → .idea/vcs.xml View File

@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<project version="4"> <project version="4">
<component name="VcsDirectoryMappings"> <component name="VcsDirectoryMappings">
<mapping directory="$PROJECT_DIR$/.." vcs="Git" />
<mapping directory="$PROJECT_DIR$" vcs="Git" />
</component> </component>
</project> </project>

+ 0
- 8
stretch_camera_testrig/.idea/modules.xml View File

@ -1,8 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="ProjectModuleManager">
<modules>
<module fileurl="file://$PROJECT_DIR$/.idea/stretch_camera_testrig.iml" filepath="$PROJECT_DIR$/.idea/stretch_camera_testrig.iml" />
</modules>
</component>
</project>

+ 33904
- 0
stretch_camera_testrig/data/testrig_collected_data_202206101538.yaml
File diff suppressed because it is too large
View File


+ 33680
- 0
stretch_camera_testrig/data/testrig_collected_data_202206101540.yaml
File diff suppressed because it is too large
View File


+ 29184
- 0
stretch_camera_testrig/data/testrig_collected_data_202206161215.yaml
File diff suppressed because it is too large
View File


+ 8
- 4
stretch_camera_testrig/nodes/collect_head_calibration_data.py View File

@ -94,7 +94,8 @@ class CollectHeadCalibrationDataNode:
if marker.id == self.shoulder_marker_id: if marker.id == self.shoulder_marker_id:
self.shoulder_marker_pose = marker.pose self.shoulder_marker_pose = marker.pose
def calibration_data_callback_testrig(self, marker_array, accel):
# def calibration_data_callback_testrig(self, marker_array, accel):
def calibration_data_callback_testrig(self, marker_array):
with self.data_lock: with self.data_lock:
self.wrist_inside_marker_pose = None self.wrist_inside_marker_pose = None
@ -102,7 +103,7 @@ class CollectHeadCalibrationDataNode:
self.base_left_marker_pose = None self.base_left_marker_pose = None
self.base_right_marker_pose = None self.base_right_marker_pose = None
self.shoulder_marker_pose = None self.shoulder_marker_pose = None
self.acceleration = [accel.linear_acceleration.x, accel.linear_acceleration.y, accel.linear_acceleration.z]
# self.acceleration = [accel.linear_acceleration.x, accel.linear_acceleration.y, accel.linear_acceleration.z]
self.marker_time = None self.marker_time = None
for marker in marker_array.markers: for marker in marker_array.markers:
@ -829,10 +830,13 @@ class CollectHeadCalibrationDataNode:
else: else:
# Setup time synchronization for collecting testrig data. # Setup time synchronization for collecting testrig data.
accel_subscriber = message_filters.Subscriber('/camera/accel/sample_corrected', Imu)
# accel_subscriber = message_filters.Subscriber('/camera/accel/sample_corrected', Imu)
aruco_subscriber = message_filters.Subscriber('/aruco/marker_array', MarkerArray) aruco_subscriber = message_filters.Subscriber('/aruco/marker_array', MarkerArray)
slop_time = 0.1 slop_time = 0.1
self.synchronizer = message_filters.ApproximateTimeSynchronizer([aruco_subscriber, accel_subscriber], 10,
# self.synchronizer = message_filters.ApproximateTimeSynchronizer([aruco_subscriber, accel_subscriber], 10,
# slop_time,
# allow_headerless=True)
self.synchronizer = message_filters.ApproximateTimeSynchronizer([aruco_subscriber], 10,
slop_time, slop_time,
allow_headerless=True) allow_headerless=True)
self.synchronizer.registerCallback(self.calibration_data_callback_testrig) self.synchronizer.registerCallback(self.calibration_data_callback_testrig)

+ 15
- 0
stretch_gazebo/config/dex_wrist.yaml View File

@ -0,0 +1,15 @@
stretch_dex_wrist_controller:
type: "position_controllers/JointTrajectoryController"
joints:
- joint_wrist_pitch
- joint_wrist_roll
allow_partial_joints_goal: true
constraints:
goal_time: 0.6
stopped_velocity_tolerance: 0.05
joint_gripper_finger_right: {trajectory: 0.1, goal: 0.1}
joint_gripper_finger_left: {trajectory: 0.1, goal: 0.1}
stop_trajectory_duration: 0.5
state_publish_rate: 25
action_monitor_rate: 10

Loading…
Cancel
Save