Package Summary

Tags No category tags.
Version 1.1.0
License Apache License 2.0
Build type AMENT_CMAKE
Use RECOMMENDED

Repository Summary

Checkout URI https://github.com/autowarefoundation/autoware_utils.git
VCS Type git
VCS Version main
Last Updated 2025-03-07
Dev Status DEVELOPED
CI status No Continuous Integration
Released RELEASED
Tags No category tags.
Contributing Help Wanted (0)
Good First Issues (0)
Pull Requests to Review (0)

Package Description

The autoware_utils_math package

Additional Links

No additional links.

Maintainers

  • Jian Kang
  • Ryohsuke Mitsudome
  • Esteve Fernandez
  • Yutaka Kondo
  • Takagi, Isamu

Authors

No additional authors.

autoware_utils_math

Overview

The autoware_utils library is a comprehensive toolkit designed to facilitate the development of autonomous driving applications. This package provides essential utilities for mathematics. It is extensively used in the Autoware project to handle common tasks such as value normalization and unit conversion.

Design

  • accumulator.hpp: A class for accumulating statistical data, supporting min, max, and mean calculations.
  • constants.hpp: Defines commonly used mathematical constants like π and gravity.
  • normalization.hpp: Functions for normalizing angles and degrees.
  • range.hpp: Functions for generating sequences of numbers (arange, linspace).
  • trigonometry.hpp: Optimized trigonometric functions for faster computation.
  • unit_conversion.hpp: Functions for converting between different units (e.g., degrees to radians, km/h to m/s).

Example Code Snippets

Using Accumulator from accumulator.hpp

#include <autoware_utils_math/accumulator.hpp>

int main()
{
  autoware_utils_math::Accumulator<double> acc;

  acc.add(1.0);
  acc.add(2.0);
  acc.add(3.0);

  std::cout << "Mean: " << acc.mean() << "\n";
  std::cout << "Min: " << acc.min() << "\n";
  std::cout << "Max: " << acc.max() << "\n";
  std::cout << "Count: " << acc.count() << "\n";

  return 0;
}

CHANGELOG
No CHANGELOG found.

Wiki Tutorials

This package does not provide any links to tutorials in it's rosindex metadata. You can check on the ROS Wiki Tutorials page for the package.

Package Dependencies

System Dependencies

No direct system dependencies.

Dependant Packages

Name Deps
autoware_utils

Launch files

No launch files found

Messages

No message files found.

Services

No service files found

Plugins

No plugins found.

Recent questions tagged autoware_utils_math at Robotics Stack Exchange

Package Summary

Tags No category tags.
Version 1.1.0
License Apache License 2.0
Build type AMENT_CMAKE
Use RECOMMENDED

Repository Summary

Checkout URI https://github.com/autowarefoundation/autoware_utils.git
VCS Type git
VCS Version main
Last Updated 2025-03-07
Dev Status DEVELOPED
CI status No Continuous Integration
Released RELEASED
Tags No category tags.
Contributing Help Wanted (0)
Good First Issues (0)
Pull Requests to Review (0)

Package Description

The autoware_utils_math package

Additional Links

No additional links.

Maintainers

  • Jian Kang
  • Ryohsuke Mitsudome
  • Esteve Fernandez
  • Yutaka Kondo
  • Takagi, Isamu

Authors

No additional authors.

autoware_utils_math

Overview

The autoware_utils library is a comprehensive toolkit designed to facilitate the development of autonomous driving applications. This package provides essential utilities for mathematics. It is extensively used in the Autoware project to handle common tasks such as value normalization and unit conversion.

Design

  • accumulator.hpp: A class for accumulating statistical data, supporting min, max, and mean calculations.
  • constants.hpp: Defines commonly used mathematical constants like π and gravity.
  • normalization.hpp: Functions for normalizing angles and degrees.
  • range.hpp: Functions for generating sequences of numbers (arange, linspace).
  • trigonometry.hpp: Optimized trigonometric functions for faster computation.
  • unit_conversion.hpp: Functions for converting between different units (e.g., degrees to radians, km/h to m/s).

Example Code Snippets

Using Accumulator from accumulator.hpp

#include <autoware_utils_math/accumulator.hpp>

int main()
{
  autoware_utils_math::Accumulator<double> acc;

  acc.add(1.0);
  acc.add(2.0);
  acc.add(3.0);

  std::cout << "Mean: " << acc.mean() << "\n";
  std::cout << "Min: " << acc.min() << "\n";
  std::cout << "Max: " << acc.max() << "\n";
  std::cout << "Count: " << acc.count() << "\n";

  return 0;
}

CHANGELOG
No CHANGELOG found.

Wiki Tutorials

This package does not provide any links to tutorials in it's rosindex metadata. You can check on the ROS Wiki Tutorials page for the package.

Package Dependencies

System Dependencies

No direct system dependencies.

Dependant Packages

Name Deps
autoware_utils

Launch files

No launch files found

Messages

No message files found.

Services

No service files found

Plugins

No plugins found.

Recent questions tagged autoware_utils_math at Robotics Stack Exchange