Skip to content

Commit

Permalink
Added simple tutorial files from the S3 bucket (#253)
Browse files Browse the repository at this point in the history
  • Loading branch information
svwilliams authored Oct 22, 2021
1 parent 9b7a8bf commit 82c284e
Show file tree
Hide file tree
Showing 4 changed files with 177 additions and 0 deletions.
112 changes: 112 additions & 0 deletions fuse_tutorials/config/fuse_simple_tutorial.rviz
Original file line number Diff line number Diff line change
@@ -0,0 +1,112 @@
Panels:
- Class: rviz/Displays
Name: Displays
Property Tree Widget:
Expanded:
- /Odometry1/Covariance1/Position1
- /Odometry1/Covariance1/Orientation1
Tree Height: 675
- Class: rviz/Selection
Name: Selection
- Class: rviz/Tool Properties
Expanded:
- /2D Pose Estimate1
- /2D Nav Goal1
- /Publish Point1
Name: Tool Properties
- Class: rviz/Views
Expanded:
- /Current View1
Name: Views
- Class: rviz/Time
Name: Time
- Class: rviz/Displays
Help Height: 70
Name: Displays
Property Tree Widget:
Expanded: null
Tree Height: 371
- Class: rviz/Views
Expanded:
- /Current View1
Name: Views
Visualization Manager:
Displays:
- Alpha: 0.5
Cell Size: 1
Class: rviz/Grid
Color: 160; 160; 164
Enabled: true
Line Style:
Line Width: 0.029999999329447746
Value: Lines
Name: Grid
Normal Cell Count: 0
Offset:
X: 0
Y: 0
Z: 0
Plane: XY
Plane Cell Count: 100
Reference Frame: <Fixed Frame>
Value: true
- Angle Tolerance: 0.05000000074505806
Class: rviz/Odometry
Covariance:
Orientation:
Alpha: 0.20000000298023224
Color: 64; 84; 191
Color Style: Unique
Frame: Local
Offset: 1
Scale: 1
Value: true
Position:
Alpha: 0.10000000149011612
Color: 138; 226; 52
Scale: 1
Value: true
Value: false
Enabled: true
Keep: 10000
Name: Odometry
Position Tolerance: 0.10000000149011612
Queue Size: 10
Shape:
Alpha: 1
Axes Length: 1
Axes Radius: 0.10000000149011612
Color: 255; 25; 0
Head Length: 0.07500000298023224
Head Radius: 0.02500000037252903
Shaft Length: 0.25
Shaft Radius: 0.012500000186264515
Value: Arrow
Topic: /odom_filtered
Unreliable: false
Value: true
Global Options:
Fixed Frame: odom
Tools:
- Class: rviz/Interact
- Class: rviz/MoveCamera
- Class: rviz/Select
- Class: rviz/FocusCamera
- Class: rviz/Measure
- Class: rviz/SetInitialPose
- Class: rviz/SetGoal
- Class: rviz/PublishPoint
Views:
Current:
Angle: 0
Class: rviz/TopDownOrtho
Scale: 168.0491180419922
X: 2
Y: 0
Saved: null
Window Geometry:
Height: 1201
QMainWindow State: 000000ff00000000fd00000003000000000000015600000413fc020000000afb0000001200530065006c0065006300740069006f006e00000001e10000009b0000005c00fffffffb0000001e0054006f006f006c002000500072006f007000650072007400690065007302000001ed000001df00000185000000a3fb000000120056006900650077007300200054006f006f02000001df000002110000018500000122fb000000200054006f006f006c002000500072006f0070006500720074006900650073003203000002880000011d000002210000017afb000000100044006900730070006c006100790073010000003d0000032e000000c900fffffffb0000002000730065006c0065006300740069006f006e00200062007500660066006500720200000138000000aa0000023a00000294fb00000014005700690064006500530074006500720065006f02000000e6000000d2000003ee0000030bfb0000000c004b0069006e0065006300740200000186000001060000030c00000261fb000000100044006900730070006c006100790073000000031c00000134000000c900fffffffb0000000a005600690065007700730100000371000000df000000a400ffffff000000010000010f00000413fc0200000003fb0000001e0054006f006f006c002000500072006f00700065007200740069006500730100000041000000780000000000000000fb0000000a00560069006500770073010000003d00000413000000a400fffffffb0000001200530065006c0065006300740069006f006e010000025a000000b2000000000000000000000003000007340000003efc0100000002fb0000000800540069006d0065010000000000000734000002eb00fffffffb0000000800540069006d00650100000000000004500000000000000000000004c30000041300000004000000040000000800000008fc0000000100000002000000010000000a0054006f006f006c00730100000000ffffffff0000000000000000
Width: 1844
X: 72
Y: 27
54 changes: 54 additions & 0 deletions fuse_tutorials/config/fuse_simple_tutorial.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
# Fixed-lag smoother configuration
optimization_frequency: 20
transaction_timeout: 0.01
lag_duration: 0.5

motion_models:
unicycle_motion_model:
type: fuse_models::Unicycle2D

unicycle_motion_model:
# x y yaw vx vy vyaw ax ay
process_noise_diagonal: [0.100, 0.100, 0.100, 0.100, 0.100, 0.100, 0.1, 0.1]

sensor_models:
initial_localization_sensor:
type: fuse_models::Unicycle2DIgnition
motion_models: [unicycle_motion_model]
ignition: true
odometry_sensor:
type: fuse_models::Odometry2D
motion_models: [unicycle_motion_model]
imu_sensor:
type: fuse_models::Imu2D
motion_models: [unicycle_motion_model]

initial_localization_sensor:
publish_on_startup: true
# x y yaw vx vy vyaw ax ay
initial_state: [0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000]
initial_sigma: [0.100, 0.100, 0.100, 0.100, 0.100, 0.100, 0.100, 0.100]

odometry_sensor:
topic: 'odom'
twist_target_frame: 'base_footprint'
linear_velocity_dimensions: ['x', 'y']
angular_velocity_dimensions: ['yaw']

imu_sensor:
topic: 'imu'
twist_target_frame: 'base_footprint'
angular_velocity_dimensions: ['yaw']

publishers:
filtered_publisher:
type: fuse_models::Odometry2DPublisher

filtered_publisher:
topic: 'odom_filtered'
base_link_frame_id: 'base_footprint'
odom_frame_id: 'odom'
map_frame_id: 'map'
world_frame_id: 'odom'
publish_tf: true
publish_frequency: 10
Binary file added fuse_tutorials/data/turtlebot3.bag
Binary file not shown.
11 changes: 11 additions & 0 deletions fuse_tutorials/launch/fuse_simple_tutorial.launch
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<launch>
<param name="/use_sim_time" value="true"/>

<node name="state_estimator" pkg="fuse_optimizers" type="fixed_lag_smoother_node">
<rosparam command="load" file="$(find fuse_tutorials)/config/fuse_simple_tutorial.yaml"/>
</node>

<node name="bag_play" pkg="rosbag" type="play" args="$(find fuse_tutorials)/data/turtlebot3.bag --clock -d 3"/>

<node name="rviz" pkg="rviz" type="rviz" args="-d $(find fuse_tutorials)/config/fuse_simple_tutorial.rviz"/>
</launch>

0 comments on commit 82c284e

Please sign in to comment.