Skip to content

Software

husarion_ugv_ros

By Husarion, Poland (checked on github.com/husarion (opens in a new tab)), from github.com/husarion/husarion_ugv_ros (opens in a new tab)

  • Navigation and mapping
  • Driver or SDK
  • Apache-2.0

ROS 2 packages for Husarion Unmanned Ground Vehicles, enabling the Lynx and Panther robots to run on hardware or in simulation.

Facts

GitHub stars
89read on 28 Nov 2026
Last update
25 Jun 2026Newest commit on ros2
Maintenance
Maintaineda commit in the last 12 months
Difficulty
Intermediate
Hardware it needs, as the project states it
Built and run on the robot's Built-in Computer for the real robot; a laptop is used for unit testing without integration tests.

Checked on GitHub on 28 Nov 2026.

Licenses

Code
Apache-2.0 (opens in a new tab)

Read by Robotheca from LICENSE (opens in a new tab) (Apache-2.0) at commit 559e784 (opens in a new tab), on 16 Oct 2026.

Commercial use
Yes

At a glance

What it is
  • Provides the packages needed to launch the Lynx and Panther robots, on the real robot or in simulation.
  • Build type is selected with the HUSARION_ROS_BUILD_TYPE variable, set to hardware or simulation.
  • Real robot bringup and simulation are started with separate ros2 launch commands.
  • Many launch arguments configure wheels, controllers, localization (relative or ENU), GPS fusion, lights and behavior trees.
  • Simulation supports spawning a chosen robot model, headless mode, RViz and a world file, with initial pose arguments.
  • Includes pre-commit setup and unit tests that differ between a laptop and the robot's built-in computer.

Robotheca's summary of the project's documents, not the creator's words.

Robots on Robotheca
No robot on Robotheca uses it yet.
Licence
Apache-2.0. Commercial use: Yes. Where it was read
Install
In the creator's words: The project's website (opens in a new tab)
Maintenance
Maintained, last commit on 25 Jun 2026.

Use it

How to install it, in the creator's words: The project's website (opens in a new tab)

Robotheca doesn't review code. Read it before running it.

Files and versions

Facts read at commit 559e784

Robotheca never hosts the code: each link goes to the creator's own page.

The README

The creator's own README, copied as written: README.md by Husarion, at commit 559e784, under Apache-2.0 (opens in a new tab). The original on GitHub (opens in a new tab).

Read the README here

husarion_ugv_ros

ROS 2 packages for Husarion UGV (Unmanned Ground Vehicle). The repository is a collection of necessary packages enabling the launch of the Lynx and Panther robots.

(opens in a new tab)

Quick start
Create workspace
mkdir ~/husarion_ws
cd ~/husarion_ws
git clone -b ros2 https://github.com/husarion/husarion_ugv_ros.git src/husarion_ugv_ros
Configure environment

The repository is used to run the code both on the real robot and in the simulation. Specify HUSARION_ROS_BUILD_TYPE the variable according to your needs.

Real robot:

export HUSARION_ROS_BUILD_TYPE=hardware

Simulation:

export HUSARION_ROS_BUILD_TYPE=simulation
Build
vcs import src < src/husarion_ugv_ros/husarion_ugv/${HUSARION_ROS_BUILD_TYPE}_deps.repos

sudo rosdep init
rosdep update --rosdistro $ROS_DISTRO
rosdep install --from-paths src -y -i

source /opt/ros/$ROS_DISTRO/setup.bash
colcon build --symlink-install --packages-up-to husarion_ugv --cmake-args -DCMAKE_BUILD_TYPE=Release -DBUILD_TESTING=OFF

source install/setup.bash

[!NOTE] To build code on a real robot you need to run above commands on the robot Built-in Computer.

Running

Real robot:

ros2 launch husarion_ugv_bringup bringup.launch.py

Simulation:

ros2 launch husarion_ugv_gazebo simulation.launch.py

[!IMPORTANT] You can change spawning robot in simulation, by adding robot_model:={robot_model} argument.

Launch Arguments

Launch arguments are largely common to both simulation and physical robot. However, there is a group of arguments that apply only to hardware or only to the simulator. Below is a legend to the tables with all launch arguments.

SymbolMeaning
๐Ÿค–Available for physical robot
๐Ÿ–ฅ๏ธAvailable in simulation

| ๐Ÿค– | ๐Ÿ–ฅ๏ธ | Argument | Description Type: Default | | --- | --- | ---------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | | โŒ | โœ… | add_world_transform | Adds a world frame that connects the tf trees of individual robots (useful when running multiple robots). bool: False | | โœ… | โœ… | animations_config_path | Path to a YAML file with a description of led configuration. This file includes definition of robot panels, virtual segments and default animations. string: {robot_model}_animations.yaml (opens in a new tab) | | โŒ | โœ… | battery_config_path | Path to the Gazebo LinearBatteryPlugin configuration file. This configuration is intended for use in simulations only. string: None | | โœ… | โœ… | components_config_path | Additional components configuration file. Components described in this file are dynamically included in robot's URDF. Available options are described in the manual (opens in a new tab). string: components.yaml (opens in a new tab) | | โœ… | โœ… | controller_config_path | Path to controller configuration file. A path to custom configuration can be specified here. string: {wheel_type}_controller.yaml (opens in a new tab) | | โœ… | โœ… | disable_manager | Enable or disable manager_bt_node. bool: False | | โœ… | โœ… | fuse_gps | Include GPS for data fusion. bool: False | | โŒ | โœ… | gz_bridge_config_path | Path to the parameter_bridge configuration file. string: gz_bridge.yaml (opens in a new tab) | | โŒ | โœ… | gz_gui | Run simulation with specific GUI layout. string: teleop.config (opens in a new tab) | | โŒ | โœ… | gz_headless_mode | Run the simulation in headless mode. Useful when a GUI is not needed or to reduce the number of calculations. bool: False | | โŒ | โœ… | gz_log_level | Adjust the level of console output. int: 1 (choices: 0, 1, 2, 3, 4) | | โŒ | โœ… | gz_world | Absolute path to SDF world file. string: husarion_world.sdf (opens in a new tab) | | โœ… | โœ… | launch_gamepad | Enable robot control via gamepad. bool: True for physical robot; bool: False for simulation | | โœ… | โœ… | launch_nmea_gps | Whether to launch the NMEA NavSat driver node. Advisable when the robot is equipped with the ANT02 (opens in a new tab). bool: False | | โœ… | โœ… | lights_bt_project_path | Path to BehaviorTree project file, responsible for lights management. string: LightsBT.btproj (opens in a new tab) | | โœ… | โœ… | localization_config_path | Specify the path to the localization configuration file. string: relative_localization.yaml (opens in a new tab) | | โœ… | โœ… | localization_mode | Specifies the localization mode:

  • 'relative' odometry/filtered data is relative to the initial position and orientation.
  • 'enu' odometry/filtered data is relative to initial position and ENU (East North Up) orientation. string: relative (choices: relative, enu) | | โœ… | โœ… | log_level | Sets verbosity of launched nodes. string: INFO | โœ… | โœ… | namespace | Add namespace to all launched nodes. string: env(ROBOT_NAMESPACE) | | | โŒ | โœ… | robot_model | Specify robot model type. string: env(ROBOT_MODEL_NAME) (choices: lynx, panther) | | โœ… | โœ… | safety_bt_project_path | Path to BehaviorTree project file, responsible for safety and shutdown management. string: SafetyBT.btproj (opens in a new tab) | | โœ… | โœ… | shutdown_hosts_config_path | Path to file with list of hosts to request shutdown. string: shutdown_hosts.yaml (opens in a new tab) | | โœ… | โœ… | use_ekf | Enable or disable EKF. bool: True | | โŒ | โœ… | use_joint_state_publisher | Flag enabling joint_state_publisher to publish information about the wheel position. Should be false when there is a controller that sends this information. bool: False | | โŒ | โœ… | use_joint_state_publisher_gui | Flag enabling joint_state_publisher_gui to publish information about the wheel position. Should be false when there is a controller that sends this information. bool: False | | โŒ | โœ… | use_rviz | Run RViz simultaneously. bool: True | | โœ… | โœ… | use_sim | Whether simulation is used. bool: False | | โœ… | โœ… | user_led_animations_path | Path to a YAML file with a description of the user-defined animations. string: '' | | โœ… | โœ… | wheel_config_path | Path to wheel configuration file. string: {wheel_type}.yaml (opens in a new tab) | | โœ… | โœ… | wheel_type | Specify the wheel type. If the selected wheel type is not 'custom', the wheel_config_path and controller_config_path arguments will be automatically adjusted and can be omitted. string: WH01 (for Panther), WH05 (for Lynx) (choices: WH01, WH02, WH04, WH05, custom) | | โŒ | โœ… | x | Initial robot position in the global 'x' axis. float: 0.0 | | โŒ | โœ… | y | Initial robot position in the global 'y' axis. float: -2.0 | | โŒ | โœ… | z | Initial robot position in the global 'z' axis. float: 0.2 | | โŒ | โœ… | roll | Initial robot 'roll' orientation. float: 0.0 | | โŒ | โœ… | pitch | Initial robot 'pitch' orientation. float: 0.0 | | โŒ | โœ… | yaw | Initial robot 'yaw' orientation. float: 0.0 |

[!TIP]

To read the arguments for individual packages, add the -s flag to the ros2 launch command (e.g. ros2 launch husarion_ugv_bringup bringup.launch.py โ€‹โ€‹-s)

Developer Info
Setup pre-commit

This project uses pre-commit to maintain high quality of the source code. Install precommit after downloading the repository to apply the changes.

pre-commit install
Unit testing
Running on laptop
colcon build --symlink-install --packages-up-to husarion_ugv --cmake-args -DCMAKE_BUILD_TYPE=Release -DTEST_INTEGRATION=OFF
colcon test --packages-up-to husarion_ugv
Running on the Built-In Computer
colcon build --symlink-install --packages-up-to husarion_ugv --cmake-args -DCMAKE_BUILD_TYPE=Release -DTEST_INTEGRATION=ON
colcon test --packages-up-to husarion_ugv

Robotheca lists software as a reference: nothing is hosted or run here, and every fact links to where it was read.