From: Walter Fetter Lages Date: Wed, 20 Apr 2022 20:36:26 +0000 (-0300) Subject: Add GPS. X-Git-Url: http://git.ece.ufrgs.br/?a=commitdiff_plain;h=a2974be1dbaa982d2b126c33d1ee0a4326c4b930;p=twil.git Add GPS. --- diff --git a/twil_bringup/config/dynamics_linearizing_controller.yaml b/twil_bringup/config/dynamics_linearizing_controller.yaml index 75c3647..45776c7 100644 --- a/twil_bringup/config/dynamics_linearizing_controller.yaml +++ b/twil_bringup/config/dynamics_linearizing_controller.yaml @@ -7,6 +7,7 @@ - caster_base_joint - front_caster_wheel_joint - front_caster_base_joint + - tower_joint /dynamics_linearizing_controller: ros__parameters: diff --git a/twil_bringup/config/joint_effort_controller.yaml b/twil_bringup/config/joint_effort_controller.yaml index 1fed36f..5674062 100644 --- a/twil_bringup/config/joint_effort_controller.yaml +++ b/twil_bringup/config/joint_effort_controller.yaml @@ -5,6 +5,7 @@ - caster_base_joint - front_caster_wheel_joint - front_caster_base_joint + - tower_joint /left_wheel_joint_effort_controller: ros__parameters: diff --git a/twil_bringup/config/joint_velocity_controller.yaml b/twil_bringup/config/joint_velocity_controller.yaml index d5bc594..721414c 100644 --- a/twil_bringup/config/joint_velocity_controller.yaml +++ b/twil_bringup/config/joint_velocity_controller.yaml @@ -5,6 +5,7 @@ - caster_base_joint - front_caster_wheel_joint - front_caster_base_joint + - tower_joint /left_wheel_joint_velocity_controller: ros__parameters: diff --git a/twil_bringup/config/nonsmooth_backstep_controller.yaml b/twil_bringup/config/nonsmooth_backstep_controller.yaml index 76ce6bc..ed92ab9 100644 --- a/twil_bringup/config/nonsmooth_backstep_controller.yaml +++ b/twil_bringup/config/nonsmooth_backstep_controller.yaml @@ -7,6 +7,7 @@ - caster_base_joint - front_caster_wheel_joint - front_caster_base_joint + - tower_joint /nonsmooth_backstep_controller: ros__parameters: diff --git a/twil_bringup/config/nonsmooth_backstep_controller_step.yaml b/twil_bringup/config/nonsmooth_backstep_controller_step.yaml index 5ec5bc3..66652e9 100644 --- a/twil_bringup/config/nonsmooth_backstep_controller_step.yaml +++ b/twil_bringup/config/nonsmooth_backstep_controller_step.yaml @@ -7,6 +7,7 @@ - caster_base_joint - front_caster_wheel_joint - front_caster_base_joint + - tower_joint /nonsmooth_backstep_controller: ros__parameters: diff --git a/twil_bringup/config/twist_mrac_linearizing_controller.yaml b/twil_bringup/config/twist_mrac_linearizing_controller.yaml index 01b3307..aed26a8 100644 --- a/twil_bringup/config/twist_mrac_linearizing_controller.yaml +++ b/twil_bringup/config/twist_mrac_linearizing_controller.yaml @@ -7,6 +7,7 @@ - caster_base_joint - front_caster_wheel_joint - front_caster_base_joint + - tower_joint /twist_mrac_linearizing_controller: ros__parameters: diff --git a/twil_bringup/launch/gazebo.launch.xml b/twil_bringup/launch/gazebo.launch.xml index d51f5f8..2e5d498 100644 --- a/twil_bringup/launch/gazebo.launch.xml +++ b/twil_bringup/launch/gazebo.launch.xml @@ -24,6 +24,8 @@ + + @@ -33,6 +35,8 @@ + + diff --git a/twil_bringup/launch/gazebo8.launch.xml b/twil_bringup/launch/gazebo8.launch.xml index eaabb9a..1d2cbe4 100644 --- a/twil_bringup/launch/gazebo8.launch.xml +++ b/twil_bringup/launch/gazebo8.launch.xml @@ -20,35 +20,45 @@ *******************************************************************************--> - - - - + + + + + + - - + + - - - - - - - - + + + + + + + + + + - + + + + + + + + - + + + + + - - - - - - - - - + + + + diff --git a/twil_bringup/launch/joint_states_odometry.launch.xml b/twil_bringup/launch/joint_states_odometry.launch.xml new file mode 100644 index 0000000..c5bc47a --- /dev/null +++ b/twil_bringup/launch/joint_states_odometry.launch.xml @@ -0,0 +1,31 @@ + + + + + + + + + + + + diff --git a/twil_description/launch/display.launch.xml b/twil_description/launch/display.launch.xml index 36e856a..18e59ae 100644 --- a/twil_description/launch/display.launch.xml +++ b/twil_description/launch/display.launch.xml @@ -23,6 +23,7 @@ + @@ -30,5 +31,7 @@ - + + + diff --git a/twil_description/launch/gazebo.launch.xml b/twil_description/launch/gazebo.launch.xml index ea607c6..1f53b26 100644 --- a/twil_description/launch/gazebo.launch.xml +++ b/twil_description/launch/gazebo.launch.xml @@ -25,21 +25,23 @@ + - + - - + + + - + diff --git a/twil_description/launch/twil.launch.xml b/twil_description/launch/twil.launch.xml index db78c72..8b56e4b 100644 --- a/twil_description/launch/twil.launch.xml +++ b/twil_description/launch/twil.launch.xml @@ -23,9 +23,10 @@ + - + diff --git a/twil_description/rviz/display.rviz b/twil_description/rviz/display.rviz index 77e012f..c9a6008 100644 --- a/twil_description/rviz/display.rviz +++ b/twil_description/rviz/display.rviz @@ -4,8 +4,7 @@ Panels: Name: Displays Property Tree Widget: Expanded: - - /Global Options1 - - /Status1 + - /Ground Truth1/Topic1 Splitter Ratio: 0.6764705777168274 Tree Height: 549 - Class: rviz_common/Selection @@ -244,6 +243,8 @@ Visualization Manager: Value: false motor_driver: Value: false + odom: + Value: true power_supply: Value: false right_wheel: @@ -271,6 +272,8 @@ Visualization Manager: Show Names: false Tree: map: + odom: + {} twil_origin: chassis: battery: @@ -314,6 +317,104 @@ Visualization Manager: {} Update Interval: 0 Value: true + - Alpha: 1 + Axes Length: 1 + Axes Radius: 0.10000000149011612 + Class: rviz_default_plugins/Pose + Color: 0; 0; 255 + Enabled: true + Head Length: 0.30000001192092896 + Head Radius: 0.10000000149011612 + Name: Pose Reference + Shaft Length: 1 + Shaft Radius: 0.05000000074505806 + Shape: Arrow + Topic: + Depth: 5 + Durability Policy: Volatile + Filter size: 10 + History Policy: Keep Last + Reliability Policy: Reliable + Value: /command_stamped + Value: true + - Angle Tolerance: 0.10000000149011612 + Class: rviz_default_plugins/Odometry + Covariance: + Orientation: + Alpha: 0.5 + Color: 255; 255; 127 + Color Style: Unique + Frame: Local + Offset: 1 + Scale: 1 + Value: true + Position: + Alpha: 0.30000001192092896 + Color: 204; 51; 204 + Scale: 1 + Value: true + Value: false + Enabled: true + Keep: 100 + Name: Ground Truth + Position Tolerance: 0.10000000149011612 + Shape: + Alpha: 1 + Axes Length: 1 + Axes Radius: 0.10000000149011612 + Color: 25; 255; 0 + Head Length: 0.30000001192092896 + Head Radius: 0.10000000149011612 + Shaft Length: 1 + Shaft Radius: 0.05000000074505806 + Value: Arrow + Topic: + Depth: 5 + Durability Policy: Volatile + Filter size: 10 + History Policy: Keep Last + Reliability Policy: Best Effort + Value: /ground_truth + Value: true + - Angle Tolerance: 0.10000000149011612 + Class: rviz_default_plugins/Odometry + Covariance: + Orientation: + Alpha: 0.5 + Color: 255; 255; 127 + Color Style: Unique + Frame: Local + Offset: 1 + Scale: 1 + Value: true + Position: + Alpha: 0.30000001192092896 + Color: 204; 51; 204 + Scale: 1 + Value: true + Value: true + Enabled: true + Keep: 42 + Name: Odometry + Position Tolerance: 0.30000001192092896 + Shape: + Alpha: 1 + Axes Length: 1 + Axes Radius: 0.10000000149011612 + Color: 255; 25; 0 + Head Length: 0.30000001192092896 + Head Radius: 0.10000000149011612 + Shaft Length: 1 + Shaft Radius: 0.05000000074505806 + Value: Arrow + Topic: + Depth: 10 + Durability Policy: Volatile + Filter size: 10 + History Policy: Keep Last + Reliability Policy: Reliable + Value: /nonsmooth_backstep_controller/odom + Value: true Enabled: true Global Options: Background Color: 48; 48; 48 @@ -360,7 +461,7 @@ Visualization Manager: Views: Current: Class: rviz_default_plugins/Orbit - Distance: 3.0386643409729004 + Distance: 6.876165390014648 Enable Stereo Rendering: Stereo Eye Separation: 0.05999999865889549 Stereo Focal Distance: 1 @@ -375,10 +476,10 @@ Visualization Manager: Invert Z Axis: false Name: Current View Near Clip Distance: 0.009999999776482582 - Pitch: -0.10960151255130768 + Pitch: 0.7303981184959412 Target Frame: Value: Orbit (rviz) - Yaw: 1.160394310951233 + Yaw: 0.7503947019577026 Saved: ~ Window Geometry: Displays: diff --git a/twil_description/xacro/gps.urdf.xacro b/twil_description/xacro/gps.urdf.xacro new file mode 100644 index 0000000..b36ceae --- /dev/null +++ b/twil_description/xacro/gps.urdf.xacro @@ -0,0 +1,48 @@ + + + + + + + + + + + + + + + + + true + 5.0 + + + + + 0.0 + 2e-4 + + + + + 0.0 + 2e-4 + + + + + + + + + ${name}_controller/out:=${name}/fix + + ${name}_link + + + Gazebo/Grey + + + + diff --git a/twil_description/xacro/twil.urdf.xacro b/twil_description/xacro/twil.urdf.xacro index 1d82e71..5af782c 100644 --- a/twil_description/xacro/twil.urdf.xacro +++ b/twil_description/xacro/twil.urdf.xacro @@ -160,13 +160,22 @@ - world + map twil_origin - odom:=ground_truth - + + odom:=ground_truth + + + + + + + + +