From 4e5daa879e29aa911d7f23672b5c530873c12c59 Mon Sep 17 00:00:00 2001 From: AYokochi Date: Mon, 27 Nov 2023 17:17:26 +0900 Subject: [PATCH 1/7] add analyzers --- .../config/cube_petit_analyzers.yaml | 70 +++++++++++++++++++ 1 file changed, 70 insertions(+) create mode 100644 cube_petit_bringup/config/cube_petit_analyzers.yaml diff --git a/cube_petit_bringup/config/cube_petit_analyzers.yaml b/cube_petit_bringup/config/cube_petit_analyzers.yaml new file mode 100644 index 0000000..e96a92f --- /dev/null +++ b/cube_petit_bringup/config/cube_petit_analyzers.yaml @@ -0,0 +1,70 @@ +analyzers: + battery: + type: diagnostic_aggregator/AnalyzerGroup + path: battery + analyzers: + epsolar_device: + type: diagnostic_aggregator/GenericAnalyzer + path: epsolar + find_and_remove_prefix: diagnostic_epsolar + battery: + type: diagnostic_aggregator/GenericAnalyzer + path: remaining_battery + find_and_remove_prefix: diagnostic_battery + motors: + type: diagnostic_aggregator/AnalyzerGroup + path: motors + analyzers: + wheel_right: + type: diagnostic_aggregator/GenericAnalyzer + path: wheel_right + find_and_remove_prefix: diagnostic_wheel_right_ + num_items: 2 + wheel_left: + type: diagnostic_aggregator/GenericAnalyzer + path: wheel_left + find_and_remove_prefix: diagnostic_wheel_left_ + num_items: 2 + sensors: + type: diagnostic_aggregator/AnalyzerGroup + path: sensors + analyzers: + map_scan: + type: diagnostic_aggregator/GenericAnalyzer + path: map_scan + find_and_remove_prefix: diagnostic_map_scan_ + depth_camera: + type: diagnostic_aggregator/GenericAnalyzer + path: depth_camera + find_and_remove_prefix: diagnostic_depth_camera_ + num_items: 2 + imu: + type: diagnostic_aggregator/GenericAnalyzer + path: imu + find_and_remove_prefix: diagnostic_imu_ + num_items: 2 + foot_scan: + type: diagnostic_aggregator/GenericAnalyzer + path: foot_scan + find_and_remove_prefix: diagnostic_foot_scan_ + num_items: 2 + body_scan: + type: diagnostic_aggregator/GenericAnalyzer + path: body_scan + find_and_remove_prefix: diagnostic_body_scan_ + num_items: 2 + head_scan: + type: diagnostic_aggregator/GenericAnalyzer + path: head_scan + find_and_remove_prefix: diagnostic_head_scan_ + num_items: 2 + move_base: + type: diagnostic_aggregator/AnalyzerGroup + path: move_base + analyzers: + movebase: + type: diagnostic_aggregator/GenericAnalyzer + path: status + find_and_remove_prefix: diagnostic_move_base_status + discard_stale: true + timeout: 5.0 From ae75fb27fa01ace2ec994f23da222d664b9c3f5b Mon Sep 17 00:00:00 2001 From: AYokochi Date: Mon, 27 Nov 2023 17:17:42 +0900 Subject: [PATCH 2/7] add imu --- cube_petit_bringup/config/imu_witmotion.yaml | 69 +++++++++++++++++++ .../config/sensors/imu_filter.yaml | 9 +++ cube_petit_bringup/launch/imu.launch | 26 +++++++ .../launch/includes/imu_filters.launch | 21 ++++++ 4 files changed, 125 insertions(+) create mode 100644 cube_petit_bringup/config/imu_witmotion.yaml create mode 100644 cube_petit_bringup/config/sensors/imu_filter.yaml create mode 100644 cube_petit_bringup/launch/imu.launch create mode 100644 cube_petit_bringup/launch/includes/imu_filters.launch diff --git a/cube_petit_bringup/config/imu_witmotion.yaml b/cube_petit_bringup/config/imu_witmotion.yaml new file mode 100644 index 0000000..3ca9d63 --- /dev/null +++ b/cube_petit_bringup/config/imu_witmotion.yaml @@ -0,0 +1,69 @@ +witmotion_imu: + port: ttyIMU + baud_rate: 9600 # baud + polling_interval: 50 # ms + restart_service_name: /restart_imu + imu_publisher: + topic_name: /gyro/imu_raw + frame_id: gyro_link + use_native_orientation: false + measurements: + acceleration: + enabled: true + covariance: [ 0.0088, 0, 0, + 0, 0.0550, 0, + 0, 0, 0.0267 ] + angular_velocity: + enabled: true + covariance: [ 0.1199, 0, 0, + 0, 0.5753, 0, + 0, 0, 0.0267 ] + orientation: + enabled: true + covariance: [ 0.0190, 0, 0, + 0, 0.0120, 0, + 0, 0, 0.0107 ] + temperature_publisher: + enabled: true + topic_name: /temperature + frame_id: base_link + from_message: magnetometer # acceleration, angular_vel, orientation, magnetometer + variance: 0.02683 + coefficient: 1.0 # Linear calibration parameters: coefficient + addition: 0.0 # and addendum + magnetometer_publisher: + enabled: true + topic_name: /magnetometer + frame_id: imu + coefficient: 0.00000001 # Linear calibration parameters: coefficient + addition: 0.0 # and addendum + covariance: [ 0.000000187123, 0, 0, + 0, 0.000000105373, 0, + 0, 0, 0.000000165816 ] + barometer_publisher: + enabled: true + topic_name: /barometer + frame_id: base_link + variance: 0.001 + coefficient: 1.0 # Linear calibration parameters: coefficient + addition: 0.0 # and addendum + altimeter_publisher: + enabled: true + topic_name: /altitude + coefficient: 1.0 # Linear calibration parameters: coefficient + addition: 0.0 # and addendum + orientation_publisher: + enabled: true + topic_name: /orientation + gps_publisher: + enabled: false + navsat_fix_frame_id: world + navsat_fix_topic_name: /gps + navsat_altitude_topic_name: /gps_altitude + navsat_satellites_topic_name: /gps_satellites + navsat_variance_topic_name: /gps_variance + ground_speed_topic_name: /gps_ground_speed + rtc_publisher: + enabled: true + topic_name: /witmotion_clock + presync: true diff --git a/cube_petit_bringup/config/sensors/imu_filter.yaml b/cube_petit_bringup/config/sensors/imu_filter.yaml new file mode 100644 index 0000000..4094004 --- /dev/null +++ b/cube_petit_bringup/config/sensors/imu_filter.yaml @@ -0,0 +1,9 @@ +publish_debug_topics: false +yaw_only_mode: true +drift_wait_time: 4.0 +drift_lpf_time_constant: 3.96 +thresh_imu_gyro_stop: 0.5 +thresh_imu_jerk_stop: 20.0 +thresh_odom_twist_stop: 0.2 +thresh_cmd_vel_stop: 0.01 +cmd_vel_timeout: 3.0 diff --git a/cube_petit_bringup/launch/imu.launch b/cube_petit_bringup/launch/imu.launch new file mode 100644 index 0000000..f1269be --- /dev/null +++ b/cube_petit_bringup/launch/imu.launch @@ -0,0 +1,26 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/cube_petit_bringup/launch/includes/imu_filters.launch b/cube_petit_bringup/launch/includes/imu_filters.launch new file mode 100644 index 0000000..f583726 --- /dev/null +++ b/cube_petit_bringup/launch/includes/imu_filters.launch @@ -0,0 +1,21 @@ + + + + + + + + + + + + + + + + + + + + + From 6831518f5ec6432d025bb2b2ff4ce4ab3878ffbc Mon Sep 17 00:00:00 2001 From: AYokochi Date: Mon, 27 Nov 2023 17:19:41 +0900 Subject: [PATCH 3/7] update yaml and launch --- cube_petit_bringup/config/ps3.config.yaml | 15 ++++++--- .../sensors/cube_petit_pacecat_filter2.yaml | 17 ++++++---- .../launch/cube_petit_bringup.launch | 33 +++++++++++-------- .../launch/rear_camera_bringup.launch | 22 ++++++++----- .../launch/talk_and_listen.launch | 14 ++++++++ 5 files changed, 67 insertions(+), 34 deletions(-) create mode 100644 cube_petit_bringup/launch/talk_and_listen.launch diff --git a/cube_petit_bringup/config/ps3.config.yaml b/cube_petit_bringup/config/ps3.config.yaml index d2e8ba4..65f079c 100644 --- a/cube_petit_bringup/config/ps3.config.yaml +++ b/cube_petit_bringup/config/ps3.config.yaml @@ -1,15 +1,20 @@ +# Joy L Stick (0:Right) axis_linear: 1 -scale_linear: 0.5 -scale_linear_turbo: 1.5 +# ZENGO +scale_linear: 0.3 +scale_linear_turbo: 0.7 + +# KAITEN axis_angular: 0 scale_angular: 5.0 -enable_button: 1 # batu button -enable_turbo_button: 10 # L1 shoulder button +# TURBO +enable_button: 1 # batu button +enable_turbo_button: 6 # L1 shoulder button # 0:select 1:leftJOY 2:rightJOY 3:start # 4:ue 5:migi 6:sita 7:hidari # 10:L1 11:R1 8:L2 9:R2 # 15:sikaku 14:batu, 13:maru, 12:sankaku -# 16:ps \ No newline at end of file +# 16:ps diff --git a/cube_petit_bringup/config/sensors/cube_petit_pacecat_filter2.yaml b/cube_petit_bringup/config/sensors/cube_petit_pacecat_filter2.yaml index 10e9d3e..6c5c83b 100644 --- a/cube_petit_bringup/config/sensors/cube_petit_pacecat_filter2.yaml +++ b/cube_petit_bringup/config/sensors/cube_petit_pacecat_filter2.yaml @@ -1,11 +1,16 @@ scan_filter_chain: -- name: angle0 # left side +- name: angle0 # right front type: laser_filters/LaserScanAngularBoundsFilterInPlace params: - lower_angle: -1.5708 - upper_angle: -0.6098 -- name: angle1 # right side + lower_angle: -1.2217 + upper_angle: -0.5236 +- name: angle1 # left behind type: laser_filters/LaserScanAngularBoundsFilterInPlace params: - lower_angle: 1.5708 - upper_angle: 2.5418 \ No newline at end of file + lower_angle: 1.9199 + upper_angle: 2.6180 + +# with zero angle being forward along the x axis +# COUNTERclockwise (right+, left-) +# range is - 3.1415 to 3.1415 [rad] +# 30deg = 0.5236 70deg = 1.2217 110de = 1.0199 120de = 2.0944 150de = 2.6180 diff --git a/cube_petit_bringup/launch/cube_petit_bringup.launch b/cube_petit_bringup/launch/cube_petit_bringup.launch index 0491c3b..53ed618 100644 --- a/cube_petit_bringup/launch/cube_petit_bringup.launch +++ b/cube_petit_bringup/launch/cube_petit_bringup.launch @@ -8,24 +8,30 @@ - - + + + + - - - - - - - + + + + + + + + + + + @@ -36,12 +42,11 @@ - - + + - - - + + \ No newline at end of file diff --git a/cube_petit_bringup/launch/rear_camera_bringup.launch b/cube_petit_bringup/launch/rear_camera_bringup.launch index d855ffa..b014a80 100644 --- a/cube_petit_bringup/launch/rear_camera_bringup.launch +++ b/cube_petit_bringup/launch/rear_camera_bringup.launch @@ -3,30 +3,34 @@ > - - + + + + + + + --> - - - - - + @@ -64,7 +68,7 @@ Format Video Capture: Transfer Function : Default YCbCr Encoding : Default Quantization : Default - Flags : + Flags : Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 640, Height 480 Default : Left 0, Top 0, Width 640, Height 480 diff --git a/cube_petit_bringup/launch/talk_and_listen.launch b/cube_petit_bringup/launch/talk_and_listen.launch new file mode 100644 index 0000000..8eecd96 --- /dev/null +++ b/cube_petit_bringup/launch/talk_and_listen.launch @@ -0,0 +1,14 @@ + + + + + + + + + + + + + + From 372aaa7da06e58691e971017df9fe6d1eb0a3934 Mon Sep 17 00:00:00 2001 From: AYokochi Date: Mon, 27 Nov 2023 17:20:10 +0900 Subject: [PATCH 4/7] add mesh --- .../meshes/cube_petit/wheels/tamiya_wheel.mtl | 0 .../meshes/cube_petit/wheels/tamiya_wheel.obj | 0 .../meshes/cube_petit/wheels/tamiya_wheel.stl | Bin .../meshes/cube_petit/wheels/tamiya_wheel.txt | 0 4 files changed, 0 insertions(+), 0 deletions(-) mode change 100644 => 100755 cube_petit_description/meshes/cube_petit/wheels/tamiya_wheel.mtl mode change 100644 => 100755 cube_petit_description/meshes/cube_petit/wheels/tamiya_wheel.obj mode change 100644 => 100755 cube_petit_description/meshes/cube_petit/wheels/tamiya_wheel.stl mode change 100644 => 100755 cube_petit_description/meshes/cube_petit/wheels/tamiya_wheel.txt diff --git a/cube_petit_description/meshes/cube_petit/wheels/tamiya_wheel.mtl b/cube_petit_description/meshes/cube_petit/wheels/tamiya_wheel.mtl old mode 100644 new mode 100755 diff --git a/cube_petit_description/meshes/cube_petit/wheels/tamiya_wheel.obj b/cube_petit_description/meshes/cube_petit/wheels/tamiya_wheel.obj old mode 100644 new mode 100755 diff --git a/cube_petit_description/meshes/cube_petit/wheels/tamiya_wheel.stl b/cube_petit_description/meshes/cube_petit/wheels/tamiya_wheel.stl old mode 100644 new mode 100755 diff --git a/cube_petit_description/meshes/cube_petit/wheels/tamiya_wheel.txt b/cube_petit_description/meshes/cube_petit/wheels/tamiya_wheel.txt old mode 100644 new mode 100755 From ecc233ea5a1a3e2fd1199b9c68456de646b6a665 Mon Sep 17 00:00:00 2001 From: AYokochi Date: Mon, 27 Nov 2023 17:20:17 +0900 Subject: [PATCH 5/7] fix lidar --- cube_petit_description/urdf/sensors/lidar.xacro | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/cube_petit_description/urdf/sensors/lidar.xacro b/cube_petit_description/urdf/sensors/lidar.xacro index 4c395a5..f292ec5 100644 --- a/cube_petit_description/urdf/sensors/lidar.xacro +++ b/cube_petit_description/urdf/sensors/lidar.xacro @@ -3,7 +3,7 @@ - + @@ -63,4 +63,3 @@ - From 8646ddc30d7c2879d44fcf6b44032ff6050135bc Mon Sep 17 00:00:00 2001 From: AYokochi Date: Mon, 27 Nov 2023 17:24:25 +0900 Subject: [PATCH 6/7] update gazebo launch --- .../launch/cube_petit_gazebo_pc.launch | 130 ++++++++---------- 1 file changed, 56 insertions(+), 74 deletions(-) diff --git a/cube_petit_gazebo/launch/cube_petit_gazebo_pc.launch b/cube_petit_gazebo/launch/cube_petit_gazebo_pc.launch index b7521c1..d70f69b 100644 --- a/cube_petit_gazebo/launch/cube_petit_gazebo_pc.launch +++ b/cube_petit_gazebo/launch/cube_petit_gazebo_pc.launch @@ -1,69 +1,53 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - + + - + - - - - - - - + + + + + \ No newline at end of file From 7fb146ad0c6570536b1e181084594fb0f477b6b0 Mon Sep 17 00:00:00 2001 From: AYokochi Date: Tue, 4 Jun 2024 11:00:07 +0900 Subject: [PATCH 7/7] fix launch file --- .../launch/cube_petit_bringup.launch | 10 +----- .../launch/rear_camera_bringup.launch | 24 ------------- .../launch/cube_petit_gazebo_pc.launch | 34 +++++++++---------- 3 files changed, 17 insertions(+), 51 deletions(-) diff --git a/cube_petit_bringup/launch/cube_petit_bringup.launch b/cube_petit_bringup/launch/cube_petit_bringup.launch index 53ed618..4704103 100644 --- a/cube_petit_bringup/launch/cube_petit_bringup.launch +++ b/cube_petit_bringup/launch/cube_petit_bringup.launch @@ -21,14 +21,6 @@ - - - - - - - - @@ -49,4 +41,4 @@ - \ No newline at end of file + diff --git a/cube_petit_bringup/launch/rear_camera_bringup.launch b/cube_petit_bringup/launch/rear_camera_bringup.launch index b014a80..fd852ce 100644 --- a/cube_petit_bringup/launch/rear_camera_bringup.launch +++ b/cube_petit_bringup/launch/rear_camera_bringup.launch @@ -1,15 +1,6 @@ - - > - @@ -19,21 +10,6 @@ --> - - - - - - - - diff --git a/cube_petit_gazebo/launch/cube_petit_gazebo_pc.launch b/cube_petit_gazebo/launch/cube_petit_gazebo_pc.launch index d70f69b..43d8f89 100644 --- a/cube_petit_gazebo/launch/cube_petit_gazebo_pc.launch +++ b/cube_petit_gazebo/launch/cube_petit_gazebo_pc.launch @@ -1,14 +1,17 @@ - - + - - + + + + - - + + + + @@ -16,9 +19,13 @@ - + + + - + + + @@ -47,15 +54,6 @@ - @@ -71,4 +69,4 @@ - \ No newline at end of file +