Read-only mirror of https://github.com/ethz-asl/SonicFusion — ETHZ ASL. Issues & pull requests at the source.
  • Python 91.6%
  • CMake 8.4%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
2023-02-17 19:03:38 +01:00
src final presentation 2023-01-17 11:00:46 +01:00
.gitignore added gitignore 2022-11-21 18:44:53 +01:00
LICENSE Create LICENSE 2023-02-17 19:03:38 +01:00
README.md Update README.md 2023-02-01 21:47:40 +01:00

USS_obstacle_detection

Workspace repository for semester thesis at ETH about ultrasonic sensor fusion for obstacle detection on mobile warehouse robot.

Install

Requirements:

Copy the packages in src/ to your colcon workspace and build.

Run

Source the workspace and set export PYTHONOPTIMIZE=1 in your working terminal to suppress assertions caused by inf values in range messages. (ROS2 issue)

To run the simulation:

ros2 launch sonic_description sonic_spawn.launch.py

Or for the hardware tests adapt the sonic_fusion.launch.py (see comments) and run:

ros2 bag play [NAME OF BAG] --pause and play when the rest is ready.


and in another terminal run:

ros2 run sonic_fusion sonic_fusion.launch.py

To visualize the results use rviz2 and the config src/sonic_description/launch/sonic.rviz

The robot in simulation can be moved by running the teleop command in a separate terminal:

ros2 run teleop_twist_keyboard teleop_twist_keyboard cmd_vel:=/sonic/cmd_vel