Skip to content

Commit

Permalink
Manually lint more
Browse files Browse the repository at this point in the history
Signed-off-by: Yadunund <yadunund@intrinsic.ai>
  • Loading branch information
Yadunund committed May 31, 2024
1 parent ecce97e commit abefcbf
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -217,9 +217,10 @@ auto ScheduleDataNode::get_negotiation_trajectories(
}

rmf_traffic::RouteId route_id = 0;
const auto add_route = [&route_id, &table_view, &trajectory_elements]
(const rmf_traffic::Route& route,
rmf_traffic::schedule::ParticipantId id)
const auto add_route =
[&route_id, &table_view, &trajectory_elements]
(const rmf_traffic::Route& route,
rmf_traffic::schedule::ParticipantId id)
{
Element e {
id,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -309,9 +309,10 @@ const std::string TrajectoryServer::Implementation::parse_trajectories(
j_traj["dimensions"] = element.description.profile().footprint()
->get_characteristic_length();

auto add_segment = [&](rmf_traffic::Time finish_time,
Eigen::Vector3d finish_position,
Eigen::Vector3d finish_velocity)
auto add_segment =
[&](rmf_traffic::Time finish_time,
Eigen::Vector3d finish_position,
Eigen::Vector3d finish_velocity)
{
auto j_seg = _j_seg;
j_seg["x"] =
Expand Down Expand Up @@ -441,7 +442,8 @@ std::shared_ptr<TrajectoryServer> TrajectoryServer::make(
}

// Set up callbacks for negotiations
auto status_update_cb = [server_ptr](
auto status_update_cb =
[server_ptr](
uint64_t conflict_version,
rmf_traffic::schedule::Negotiation::Table::ViewerPtr table_view)
{
Expand Down Expand Up @@ -473,7 +475,8 @@ std::shared_ptr<TrajectoryServer> TrajectoryServer::make(
server_ptr->_pimpl->schedule_data_node->get_negotiation()->on_status_update(
std::move(status_update_cb));

auto conclusion_cb = [server_ptr](
auto conclusion_cb =
[server_ptr](
uint64_t conflict_version, bool resolved)
{
RCLCPP_DEBUG(
Expand Down

0 comments on commit abefcbf

Please sign in to comment.