Skip to content
This repository was archived by the owner on Jul 22, 2021. It is now read-only.
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions rmf_traffic/CHANGELOG.rst
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ Changelog for package rmf_traffic
* Add the blockade system for traffic light management: [#226](https://github.com/osrf/rmf_core/pull/226)
* Access trajectory waypoints by element index: [#226](https://github.com/osrf/rmf_core/pull/226)
* Get trajectory index of each plan waypoint: [#226](https://github.com/osrf/rmf_core/pull/226)
* Support for robot multi geometry: [#258] (https://github.com/osrf/rmf_core/pull/258)

1.1.0 (2020-09-24)
------------------
Expand Down
18 changes: 18 additions & 0 deletions rmf_traffic/include/rmf_traffic/Profile.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@

#include <rmf_utils/optional.hpp>
#include <rmf_utils/impl_ptr.hpp>
#include <Eigen/Dense>

namespace rmf_traffic {

Expand All @@ -44,6 +45,23 @@ class Profile
geometry::ConstFinalConvexShapePtr footprint,
geometry::ConstFinalConvexShapePtr vicinity = nullptr);

/// Add an extra shape to the footprint of the participant.
/// The onus is on the user to update the vicinity of the robot
///
/// \param[in] shape
/// An estimate of the space that this extra shape occupies.
///
/// \param[in] offset
/// Offset to the additional shape, in the robot's coordinate frame
///
void add_extra_footprint(geometry::ConstFinalConvexShapePtr shape, Eigen::Vector3d offset);

/// Get the number of extra footprint shapes
uint extra_footprint_count() const;

/// Removes all extra footprint shapes
void clear_extra_footprints();

/// Set the footprint of the participant.
Profile& footprint(geometry::ConstFinalConvexShapePtr shape);

Expand Down
Loading