From 2b450a6d8647bf56e1b70ffe20a72ccf2baba6b9 Mon Sep 17 00:00:00 2001 From: Timo Date: Fri, 18 Apr 2025 11:19:26 +0200 Subject: [PATCH] wip: testing --- src/sherpa/config/fastlio2_vlp16.yaml | 4 +-- src/sherpa/launch/simulator.launch.py | 10 ------ .../urdf/components/mecanum_wheel.xacro | 34 ++++++++++--------- src/sherpa/urdf/sherpa.xacro | 8 ++--- src/sherpa/worlds/empty.world | 28 +++++++++++---- 5 files changed, 46 insertions(+), 38 deletions(-) diff --git a/src/sherpa/config/fastlio2_vlp16.yaml b/src/sherpa/config/fastlio2_vlp16.yaml index 24cf92e..dc837f5 100644 --- a/src/sherpa/config/fastlio2_vlp16.yaml +++ b/src/sherpa/config/fastlio2_vlp16.yaml @@ -21,7 +21,7 @@ scan_line: 16 scan_rate: 10 # only need to be set for velodyne, unit: Hz, timestamp_unit: 3 # the unit of time/t field in the PointCloud2 rostopic: 0-second, 1-milisecond, 2-microsecond, 3-nanosecond. - blind: 1.05 + blind: 0.7 mapping: acc_cov: 0.01 @@ -30,7 +30,7 @@ b_gyr_cov: 0.00025 fov_degree: 360.0 det_range: 100.0 - extrinsic_est_en: true # true: enable the online estimation of IMU-LiDAR extrinsic, + extrinsic_est_en: false # true: enable the online estimation of IMU-LiDAR extrinsic, extrinsic_T: [ 0., 0., -0.05] extrinsic_R: [ 1., 0., 0., 0., 1., 0., diff --git a/src/sherpa/launch/simulator.launch.py b/src/sherpa/launch/simulator.launch.py index ef0239a..9f5796d 100644 --- a/src/sherpa/launch/simulator.launch.py +++ b/src/sherpa/launch/simulator.launch.py @@ -46,15 +46,6 @@ def generate_launch_description(): }] ) - # Load controller manager - #control_manager = Node( - # package='controller_manager', - # executable='ros2_control_node', - # parameters=[{'use_sim_time': True}, {'robot_description': '/robot_description'}], - # output='screen' - #) - - # Spawner for the mecanum controller controller = Node( package='controller_manager', executable='spawner', @@ -117,7 +108,6 @@ def generate_launch_description(): ld.add_action(gz_bridge) ld.add_action(joint_state_broadcaster) ld.add_action(controller) - #ld.add_action(control_manager) ld.add_action(rviz2) return ld diff --git a/src/sherpa/urdf/components/mecanum_wheel.xacro b/src/sherpa/urdf/components/mecanum_wheel.xacro index 58f5523..abc811e 100644 --- a/src/sherpa/urdf/components/mecanum_wheel.xacro +++ b/src/sherpa/urdf/components/mecanum_wheel.xacro @@ -1,5 +1,5 @@ - + 0.2 0.2 0.2 1 @@ -27,16 +27,15 @@ - 0 0 0 0 0 0 + - + - - - - 1.2 - 0 - 1 ${friction_dir} 0 - - - + + + + + 1.0 + 0.0 + 1 ${friction_dir} 0 + + + + diff --git a/src/sherpa/urdf/sherpa.xacro b/src/sherpa/urdf/sherpa.xacro index eb3d166..0727abe 100644 --- a/src/sherpa/urdf/sherpa.xacro +++ b/src/sherpa/urdf/sherpa.xacro @@ -27,10 +27,10 @@ - - - - + + + + diff --git a/src/sherpa/worlds/empty.world b/src/sherpa/worlds/empty.world index 3549b54..26d9fdf 100644 --- a/src/sherpa/worlds/empty.world +++ b/src/sherpa/worlds/empty.world @@ -1,6 +1,10 @@ + + 0.001 + 100 + @@ -21,10 +25,6 @@ - - 0 0 20 0 0 0 @@ -52,10 +52,11 @@ - 0.8 - 0.6 + 50 + + @@ -73,7 +74,22 @@ + 0 0 0 0 0 0 + + 0 0 0 0 0 0 + 1 + + 1 + 0 + 0 + 1 + 0 + 1 + + + 0 0 0 0 0 0 + false \ No newline at end of file