Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

set default vehicle/sensor? #767

Closed
3 tasks done
VRichardJP opened this issue Dec 28, 2023 · 2 comments
Closed
3 tasks done

set default vehicle/sensor? #767

VRichardJP opened this issue Dec 28, 2023 · 2 comments
Assignees
Labels
enhancement New feature or request

Comments

@VRichardJP
Copy link
Contributor

Checklist

  • I've read the contribution guidelines.
  • I've searched other issues and no duplicate issues were found.
  • I've agreed with the maintainers that I can plan this task.

Description

Autoware has only 1 sample vehicle and sensor kit, so why not make them defaults vehicle and sensor models in the launch file?

  <arg name="vehicle_model" default="sample_vehicle" description="vehicle model name"/>
  <arg name="sensor_model" default="sample_sensor_kit" description="sensor model name"/>

Alternatively, these variables could be set using environment variables:

  <arg name="vehicle_model" default="$(env VEHICLE_MODEL)" description="vehicle model name"/>
  <arg name="sensor_model" default="$(env SENSOR_MODEL)" description="sensor model name"/>

Where the environment would be set with a script like this:

AUTOWARE_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )

source ${AUTOWARE_DIR}/install/setup.bash

export VEHICLE_MODEL=sample_vehicle
export SENSOR_MODEL=sample_sensor_kit

# ROS stuff
# export RCUTILS_...
# export ROS_LOCALHOST_ONLY=1

# DDS stuff
# export RMW_IMPLEMENTATION=rmw_cyclonedds_cpp
# export CYCLONEDDS_URI=file://${AUTOWARE_DIR}/cyclonedds.xml

Actually the latter solution is something we have been using internally for a while. But even without overengineering things to much, I think there is no drawback with the first proposal (hardcoded default vehicle/sensor)

Purpose

win 5 seconds whenever I launch autoware from command line.

Possible approaches

  • set default vehicle/sensor to sample ones
  • or set default to environment variables, and provide script to source instead of install/setup.bash

Definition of done

don't have to type vehicle_model:=xxx anymore

@xmfcx
Copy link
Contributor

xmfcx commented Jan 31, 2024

I am also working on:

to achieve a similar result but this is also a good step in the right direction.

@xmfcx
Copy link
Contributor

xmfcx commented Jan 31, 2024

@xmfcx xmfcx closed this as completed Jan 31, 2024
maxime-clem pushed a commit to maxime-clem/autoware_launch that referenced this issue Feb 6, 2024
@xmfcx xmfcx removed this from Autoware Labs Mar 18, 2024
maxime-clem pushed a commit to maxime-clem/autoware_launch that referenced this issue Sep 3, 2024
…ndation#767)

* fix lidar diag in sensing.yaml

* enable sensing.yaml

* style(pre-commit): autofix

---------

Co-authored-by: kotaro-hihara <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants