Package Summary
Tags | No category tags. |
Version | 0.0.0 |
License | TODO: License declaration |
Build type | AMENT_PYTHON |
Use | RECOMMENDED |
Repository Summary
Description | Official implementation of "AnyCar to Anywhere: Learning Universal Dynamics Model for Agile and Adaptive Mobility" |
Checkout URI | https://github.com/lecar-lab/anycar.git |
VCS Type | git |
VCS Version | main |
Last Updated | 2024-10-28 |
Dev Status | UNKNOWN |
Released | UNRELEASED |
Tags | No category tags. |
Contributing |
Help Wanted (-)
Good First Issues (-) Pull Requests to Review (-) |
Package Description
Additional Links
Maintainers
- lecar
Authors
Instruction For Real-World Deployment
File Tree
- setup
source install/setup.bash
- run foxglove node:
ros2 launch foxglove_bridge foxglove_bridge_launch.xml
- run car_sim node:
XLA_PYTHON_CLIENT_MEM_FRACTION=0.3 ros2 launch car_ros2 car_sim.launch.py
- real2sim node:
ros2 launch car_ros2 real2sim_node.launch.py
Customize Parameters
In car_ros2/utils.py
def load_mppi_params() -> MPPIParams:
return MPPIParams(
spline_order=2,
sigma=0.05,
gamma_sigma=0.0,
gamma_mean=1.0,
discount=1.0,
sample_sigma=1.0,
lam=0.1,
n_rollouts=600,
a_min=[-1, -1.], # first dim steer, 2nd throttle
a_max=[1., 1.],
a_mag=[1., 1.],
a_shift=[0., 0.],
delay=0,
len_history=251,
debug=False,
fix_history=False,
num_obs=6,
num_actions=2,
num_intermediate=7,
h_knot=8,
smooth_alpha=1.0,
dynamics="transformer-jax",
dual=True,
# dynamics="dbm",
# dual=False,
)
Deploy in Real
-
Use nomachine to connect to car:
-
In Desktop:
- read Joystick signal:
ros2 run joy_linux joy_linux_node --ros-args -p dev:=/dev/input/js0
- run Joystick node:
ros2 run carros2 car_joystick_node
- steer the car
- turn off joystick
- run car_node
XLA_PYTHON_CLIENT_MEM_FRACTION=0.2 ros2 launch car_ros2 car_real.launch.py
- run foxglove bridge:
ros2 launch foxglove_bridge foxglove_bridge_launch.xml
- read Joystick signal:
-
Open 3 separate terminals
- Terminal 1:
source install/setup.bash
source ~/f1tenth/install/setup.bash
ros2 launch lecar_launch vesc.launch.py
- Terminal 2 (For Lidar SLAM):
source install/setup.bash
source ~/f1tenth/install/setup.bash
ros2 launch art_f1tenth_interface art_f1tenth_interface.launch.py
ros2 launch lecar_launch lidar.launch.py
- Terminal 2 (For VIO):
```bash source install/setup.bash
File truncated at 100 lines see the full file
Package Dependencies
Deps | Name |
---|---|
ament_copyright | |
ament_flake8 | |
ament_pep257 | |
rclpy | |
tf_transformations | |
ackermann_msgs | |
nav_msgs | |
geometry_msgs | |
visualization_msgs |
System Dependencies
Name |
---|
python3-pytest |
Dependant Packages
Launch files
Messages
Services
Plugins
Recent questions tagged car_ros2 at Robotics Stack Exchange
Package Summary
Tags | No category tags. |
Version | 0.0.0 |
License | TODO: License declaration |
Build type | AMENT_PYTHON |
Use | RECOMMENDED |
Repository Summary
Description | Official implementation of "AnyCar to Anywhere: Learning Universal Dynamics Model for Agile and Adaptive Mobility" |
Checkout URI | https://github.com/lecar-lab/anycar.git |
VCS Type | git |
VCS Version | main |
Last Updated | 2024-10-28 |
Dev Status | UNKNOWN |
Released | UNRELEASED |
Tags | No category tags. |
Contributing |
Help Wanted (-)
Good First Issues (-) Pull Requests to Review (-) |
Package Description
Additional Links
Maintainers
- lecar
Authors
Instruction For Real-World Deployment
File Tree
- setup
source install/setup.bash
- run foxglove node:
ros2 launch foxglove_bridge foxglove_bridge_launch.xml
- run car_sim node:
XLA_PYTHON_CLIENT_MEM_FRACTION=0.3 ros2 launch car_ros2 car_sim.launch.py
- real2sim node:
ros2 launch car_ros2 real2sim_node.launch.py
Customize Parameters
In car_ros2/utils.py
def load_mppi_params() -> MPPIParams:
return MPPIParams(
spline_order=2,
sigma=0.05,
gamma_sigma=0.0,
gamma_mean=1.0,
discount=1.0,
sample_sigma=1.0,
lam=0.1,
n_rollouts=600,
a_min=[-1, -1.], # first dim steer, 2nd throttle
a_max=[1., 1.],
a_mag=[1., 1.],
a_shift=[0., 0.],
delay=0,
len_history=251,
debug=False,
fix_history=False,
num_obs=6,
num_actions=2,
num_intermediate=7,
h_knot=8,
smooth_alpha=1.0,
dynamics="transformer-jax",
dual=True,
# dynamics="dbm",
# dual=False,
)
Deploy in Real
-
Use nomachine to connect to car:
-
In Desktop:
- read Joystick signal:
ros2 run joy_linux joy_linux_node --ros-args -p dev:=/dev/input/js0
- run Joystick node:
ros2 run carros2 car_joystick_node
- steer the car
- turn off joystick
- run car_node
XLA_PYTHON_CLIENT_MEM_FRACTION=0.2 ros2 launch car_ros2 car_real.launch.py
- run foxglove bridge:
ros2 launch foxglove_bridge foxglove_bridge_launch.xml
- read Joystick signal:
-
Open 3 separate terminals
- Terminal 1:
source install/setup.bash
source ~/f1tenth/install/setup.bash
ros2 launch lecar_launch vesc.launch.py
- Terminal 2 (For Lidar SLAM):
source install/setup.bash
source ~/f1tenth/install/setup.bash
ros2 launch art_f1tenth_interface art_f1tenth_interface.launch.py
ros2 launch lecar_launch lidar.launch.py
- Terminal 2 (For VIO):
```bash source install/setup.bash
File truncated at 100 lines see the full file
Package Dependencies
Deps | Name |
---|---|
ament_copyright | |
ament_flake8 | |
ament_pep257 | |
rclpy | |
tf_transformations | |
ackermann_msgs | |
nav_msgs | |
geometry_msgs | |
visualization_msgs |
System Dependencies
Name |
---|
python3-pytest |
Dependant Packages
Launch files
Messages
Services
Plugins
Recent questions tagged car_ros2 at Robotics Stack Exchange
Package Summary
Tags | No category tags. |
Version | 0.0.0 |
License | TODO: License declaration |
Build type | AMENT_PYTHON |
Use | RECOMMENDED |
Repository Summary
Description | Official implementation of "AnyCar to Anywhere: Learning Universal Dynamics Model for Agile and Adaptive Mobility" |
Checkout URI | https://github.com/lecar-lab/anycar.git |
VCS Type | git |
VCS Version | main |
Last Updated | 2024-10-28 |
Dev Status | UNKNOWN |
Released | UNRELEASED |
Tags | No category tags. |
Contributing |
Help Wanted (-)
Good First Issues (-) Pull Requests to Review (-) |
Package Description
Additional Links
Maintainers
- lecar
Authors
Instruction For Real-World Deployment
File Tree
- setup
source install/setup.bash
- run foxglove node:
ros2 launch foxglove_bridge foxglove_bridge_launch.xml
- run car_sim node:
XLA_PYTHON_CLIENT_MEM_FRACTION=0.3 ros2 launch car_ros2 car_sim.launch.py
- real2sim node:
ros2 launch car_ros2 real2sim_node.launch.py
Customize Parameters
In car_ros2/utils.py
def load_mppi_params() -> MPPIParams:
return MPPIParams(
spline_order=2,
sigma=0.05,
gamma_sigma=0.0,
gamma_mean=1.0,
discount=1.0,
sample_sigma=1.0,
lam=0.1,
n_rollouts=600,
a_min=[-1, -1.], # first dim steer, 2nd throttle
a_max=[1., 1.],
a_mag=[1., 1.],
a_shift=[0., 0.],
delay=0,
len_history=251,
debug=False,
fix_history=False,
num_obs=6,
num_actions=2,
num_intermediate=7,
h_knot=8,
smooth_alpha=1.0,
dynamics="transformer-jax",
dual=True,
# dynamics="dbm",
# dual=False,
)
Deploy in Real
-
Use nomachine to connect to car:
-
In Desktop:
- read Joystick signal:
ros2 run joy_linux joy_linux_node --ros-args -p dev:=/dev/input/js0
- run Joystick node:
ros2 run carros2 car_joystick_node
- steer the car
- turn off joystick
- run car_node
XLA_PYTHON_CLIENT_MEM_FRACTION=0.2 ros2 launch car_ros2 car_real.launch.py
- run foxglove bridge:
ros2 launch foxglove_bridge foxglove_bridge_launch.xml
- read Joystick signal:
-
Open 3 separate terminals
- Terminal 1:
source install/setup.bash
source ~/f1tenth/install/setup.bash
ros2 launch lecar_launch vesc.launch.py
- Terminal 2 (For Lidar SLAM):
source install/setup.bash
source ~/f1tenth/install/setup.bash
ros2 launch art_f1tenth_interface art_f1tenth_interface.launch.py
ros2 launch lecar_launch lidar.launch.py
- Terminal 2 (For VIO):
```bash source install/setup.bash
File truncated at 100 lines see the full file
Package Dependencies
Deps | Name |
---|---|
ament_copyright | |
ament_flake8 | |
ament_pep257 | |
rclpy | |
tf_transformations | |
ackermann_msgs | |
nav_msgs | |
geometry_msgs | |
visualization_msgs |
System Dependencies
Name |
---|
python3-pytest |
Dependant Packages
Launch files
Messages
Services
Plugins
Recent questions tagged car_ros2 at Robotics Stack Exchange
Package Summary
Tags | No category tags. |
Version | 0.0.0 |
License | TODO: License declaration |
Build type | AMENT_PYTHON |
Use | RECOMMENDED |
Repository Summary
Description | Official implementation of "AnyCar to Anywhere: Learning Universal Dynamics Model for Agile and Adaptive Mobility" |
Checkout URI | https://github.com/lecar-lab/anycar.git |
VCS Type | git |
VCS Version | main |
Last Updated | 2024-10-28 |
Dev Status | UNKNOWN |
Released | UNRELEASED |
Tags | No category tags. |
Contributing |
Help Wanted (-)
Good First Issues (-) Pull Requests to Review (-) |
Package Description
Additional Links
Maintainers
- lecar
Authors
Instruction For Real-World Deployment
File Tree
- setup
source install/setup.bash
- run foxglove node:
ros2 launch foxglove_bridge foxglove_bridge_launch.xml
- run car_sim node:
XLA_PYTHON_CLIENT_MEM_FRACTION=0.3 ros2 launch car_ros2 car_sim.launch.py
- real2sim node:
ros2 launch car_ros2 real2sim_node.launch.py
Customize Parameters
In car_ros2/utils.py
def load_mppi_params() -> MPPIParams:
return MPPIParams(
spline_order=2,
sigma=0.05,
gamma_sigma=0.0,
gamma_mean=1.0,
discount=1.0,
sample_sigma=1.0,
lam=0.1,
n_rollouts=600,
a_min=[-1, -1.], # first dim steer, 2nd throttle
a_max=[1., 1.],
a_mag=[1., 1.],
a_shift=[0., 0.],
delay=0,
len_history=251,
debug=False,
fix_history=False,
num_obs=6,
num_actions=2,
num_intermediate=7,
h_knot=8,
smooth_alpha=1.0,
dynamics="transformer-jax",
dual=True,
# dynamics="dbm",
# dual=False,
)
Deploy in Real
-
Use nomachine to connect to car:
-
In Desktop:
- read Joystick signal:
ros2 run joy_linux joy_linux_node --ros-args -p dev:=/dev/input/js0
- run Joystick node:
ros2 run carros2 car_joystick_node
- steer the car
- turn off joystick
- run car_node
XLA_PYTHON_CLIENT_MEM_FRACTION=0.2 ros2 launch car_ros2 car_real.launch.py
- run foxglove bridge:
ros2 launch foxglove_bridge foxglove_bridge_launch.xml
- read Joystick signal:
-
Open 3 separate terminals
- Terminal 1:
source install/setup.bash
source ~/f1tenth/install/setup.bash
ros2 launch lecar_launch vesc.launch.py
- Terminal 2 (For Lidar SLAM):
source install/setup.bash
source ~/f1tenth/install/setup.bash
ros2 launch art_f1tenth_interface art_f1tenth_interface.launch.py
ros2 launch lecar_launch lidar.launch.py
- Terminal 2 (For VIO):
```bash source install/setup.bash
File truncated at 100 lines see the full file
Package Dependencies
Deps | Name |
---|---|
ament_copyright | |
ament_flake8 | |
ament_pep257 | |
rclpy | |
tf_transformations | |
ackermann_msgs | |
nav_msgs | |
geometry_msgs | |
visualization_msgs |
System Dependencies
Name |
---|
python3-pytest |
Dependant Packages
Launch files
Messages
Services
Plugins
Recent questions tagged car_ros2 at Robotics Stack Exchange
Package Summary
Tags | No category tags. |
Version | 0.0.0 |
License | TODO: License declaration |
Build type | AMENT_PYTHON |
Use | RECOMMENDED |
Repository Summary
Description | Official implementation of "AnyCar to Anywhere: Learning Universal Dynamics Model for Agile and Adaptive Mobility" |
Checkout URI | https://github.com/lecar-lab/anycar.git |
VCS Type | git |
VCS Version | main |
Last Updated | 2024-10-28 |
Dev Status | UNKNOWN |
Released | UNRELEASED |
Tags | No category tags. |
Contributing |
Help Wanted (-)
Good First Issues (-) Pull Requests to Review (-) |
Package Description
Additional Links
Maintainers
- lecar
Authors
Instruction For Real-World Deployment
File Tree
- setup
source install/setup.bash
- run foxglove node:
ros2 launch foxglove_bridge foxglove_bridge_launch.xml
- run car_sim node:
XLA_PYTHON_CLIENT_MEM_FRACTION=0.3 ros2 launch car_ros2 car_sim.launch.py
- real2sim node:
ros2 launch car_ros2 real2sim_node.launch.py
Customize Parameters
In car_ros2/utils.py
def load_mppi_params() -> MPPIParams:
return MPPIParams(
spline_order=2,
sigma=0.05,
gamma_sigma=0.0,
gamma_mean=1.0,
discount=1.0,
sample_sigma=1.0,
lam=0.1,
n_rollouts=600,
a_min=[-1, -1.], # first dim steer, 2nd throttle
a_max=[1., 1.],
a_mag=[1., 1.],
a_shift=[0., 0.],
delay=0,
len_history=251,
debug=False,
fix_history=False,
num_obs=6,
num_actions=2,
num_intermediate=7,
h_knot=8,
smooth_alpha=1.0,
dynamics="transformer-jax",
dual=True,
# dynamics="dbm",
# dual=False,
)
Deploy in Real
-
Use nomachine to connect to car:
-
In Desktop:
- read Joystick signal:
ros2 run joy_linux joy_linux_node --ros-args -p dev:=/dev/input/js0
- run Joystick node:
ros2 run carros2 car_joystick_node
- steer the car
- turn off joystick
- run car_node
XLA_PYTHON_CLIENT_MEM_FRACTION=0.2 ros2 launch car_ros2 car_real.launch.py
- run foxglove bridge:
ros2 launch foxglove_bridge foxglove_bridge_launch.xml
- read Joystick signal:
-
Open 3 separate terminals
- Terminal 1:
source install/setup.bash
source ~/f1tenth/install/setup.bash
ros2 launch lecar_launch vesc.launch.py
- Terminal 2 (For Lidar SLAM):
source install/setup.bash
source ~/f1tenth/install/setup.bash
ros2 launch art_f1tenth_interface art_f1tenth_interface.launch.py
ros2 launch lecar_launch lidar.launch.py
- Terminal 2 (For VIO):
```bash source install/setup.bash
File truncated at 100 lines see the full file
Package Dependencies
Deps | Name |
---|---|
ament_copyright | |
ament_flake8 | |
ament_pep257 | |
rclpy | |
tf_transformations | |
ackermann_msgs | |
nav_msgs | |
geometry_msgs | |
visualization_msgs |
System Dependencies
Name |
---|
python3-pytest |
Dependant Packages
Launch files
Messages
Services
Plugins
Recent questions tagged car_ros2 at Robotics Stack Exchange
Package Summary
Tags | No category tags. |
Version | 0.0.0 |
License | TODO: License declaration |
Build type | AMENT_PYTHON |
Use | RECOMMENDED |
Repository Summary
Description | Official implementation of "AnyCar to Anywhere: Learning Universal Dynamics Model for Agile and Adaptive Mobility" |
Checkout URI | https://github.com/lecar-lab/anycar.git |
VCS Type | git |
VCS Version | main |
Last Updated | 2024-10-28 |
Dev Status | UNKNOWN |
Released | UNRELEASED |
Tags | No category tags. |
Contributing |
Help Wanted (-)
Good First Issues (-) Pull Requests to Review (-) |
Package Description
Additional Links
Maintainers
- lecar
Authors
Instruction For Real-World Deployment
File Tree
- setup
source install/setup.bash
- run foxglove node:
ros2 launch foxglove_bridge foxglove_bridge_launch.xml
- run car_sim node:
XLA_PYTHON_CLIENT_MEM_FRACTION=0.3 ros2 launch car_ros2 car_sim.launch.py
- real2sim node:
ros2 launch car_ros2 real2sim_node.launch.py
Customize Parameters
In car_ros2/utils.py
def load_mppi_params() -> MPPIParams:
return MPPIParams(
spline_order=2,
sigma=0.05,
gamma_sigma=0.0,
gamma_mean=1.0,
discount=1.0,
sample_sigma=1.0,
lam=0.1,
n_rollouts=600,
a_min=[-1, -1.], # first dim steer, 2nd throttle
a_max=[1., 1.],
a_mag=[1., 1.],
a_shift=[0., 0.],
delay=0,
len_history=251,
debug=False,
fix_history=False,
num_obs=6,
num_actions=2,
num_intermediate=7,
h_knot=8,
smooth_alpha=1.0,
dynamics="transformer-jax",
dual=True,
# dynamics="dbm",
# dual=False,
)
Deploy in Real
-
Use nomachine to connect to car:
-
In Desktop:
- read Joystick signal:
ros2 run joy_linux joy_linux_node --ros-args -p dev:=/dev/input/js0
- run Joystick node:
ros2 run carros2 car_joystick_node
- steer the car
- turn off joystick
- run car_node
XLA_PYTHON_CLIENT_MEM_FRACTION=0.2 ros2 launch car_ros2 car_real.launch.py
- run foxglove bridge:
ros2 launch foxglove_bridge foxglove_bridge_launch.xml
- read Joystick signal:
-
Open 3 separate terminals
- Terminal 1:
source install/setup.bash
source ~/f1tenth/install/setup.bash
ros2 launch lecar_launch vesc.launch.py
- Terminal 2 (For Lidar SLAM):
source install/setup.bash
source ~/f1tenth/install/setup.bash
ros2 launch art_f1tenth_interface art_f1tenth_interface.launch.py
ros2 launch lecar_launch lidar.launch.py
- Terminal 2 (For VIO):
```bash source install/setup.bash
File truncated at 100 lines see the full file
Package Dependencies
Deps | Name |
---|---|
ament_copyright | |
ament_flake8 | |
ament_pep257 | |
rclpy | |
tf_transformations | |
ackermann_msgs | |
nav_msgs | |
geometry_msgs | |
visualization_msgs |
System Dependencies
Name |
---|
python3-pytest |
Dependant Packages
Launch files
Messages
Services
Plugins
Recent questions tagged car_ros2 at Robotics Stack Exchange
Package Summary
Tags | No category tags. |
Version | 0.0.0 |
License | TODO: License declaration |
Build type | AMENT_PYTHON |
Use | RECOMMENDED |
Repository Summary
Description | Official implementation of "AnyCar to Anywhere: Learning Universal Dynamics Model for Agile and Adaptive Mobility" |
Checkout URI | https://github.com/lecar-lab/anycar.git |
VCS Type | git |
VCS Version | main |
Last Updated | 2024-10-28 |
Dev Status | UNKNOWN |
Released | UNRELEASED |
Tags | No category tags. |
Contributing |
Help Wanted (-)
Good First Issues (-) Pull Requests to Review (-) |
Package Description
Additional Links
Maintainers
- lecar
Authors
Instruction For Real-World Deployment
File Tree
- setup
source install/setup.bash
- run foxglove node:
ros2 launch foxglove_bridge foxglove_bridge_launch.xml
- run car_sim node:
XLA_PYTHON_CLIENT_MEM_FRACTION=0.3 ros2 launch car_ros2 car_sim.launch.py
- real2sim node:
ros2 launch car_ros2 real2sim_node.launch.py
Customize Parameters
In car_ros2/utils.py
def load_mppi_params() -> MPPIParams:
return MPPIParams(
spline_order=2,
sigma=0.05,
gamma_sigma=0.0,
gamma_mean=1.0,
discount=1.0,
sample_sigma=1.0,
lam=0.1,
n_rollouts=600,
a_min=[-1, -1.], # first dim steer, 2nd throttle
a_max=[1., 1.],
a_mag=[1., 1.],
a_shift=[0., 0.],
delay=0,
len_history=251,
debug=False,
fix_history=False,
num_obs=6,
num_actions=2,
num_intermediate=7,
h_knot=8,
smooth_alpha=1.0,
dynamics="transformer-jax",
dual=True,
# dynamics="dbm",
# dual=False,
)
Deploy in Real
-
Use nomachine to connect to car:
-
In Desktop:
- read Joystick signal:
ros2 run joy_linux joy_linux_node --ros-args -p dev:=/dev/input/js0
- run Joystick node:
ros2 run carros2 car_joystick_node
- steer the car
- turn off joystick
- run car_node
XLA_PYTHON_CLIENT_MEM_FRACTION=0.2 ros2 launch car_ros2 car_real.launch.py
- run foxglove bridge:
ros2 launch foxglove_bridge foxglove_bridge_launch.xml
- read Joystick signal:
-
Open 3 separate terminals
- Terminal 1:
source install/setup.bash
source ~/f1tenth/install/setup.bash
ros2 launch lecar_launch vesc.launch.py
- Terminal 2 (For Lidar SLAM):
source install/setup.bash
source ~/f1tenth/install/setup.bash
ros2 launch art_f1tenth_interface art_f1tenth_interface.launch.py
ros2 launch lecar_launch lidar.launch.py
- Terminal 2 (For VIO):
```bash source install/setup.bash
File truncated at 100 lines see the full file
Package Dependencies
Deps | Name |
---|---|
ament_copyright | |
ament_flake8 | |
ament_pep257 | |
rclpy | |
tf_transformations | |
ackermann_msgs | |
nav_msgs | |
geometry_msgs | |
visualization_msgs |
System Dependencies
Name |
---|
python3-pytest |
Dependant Packages
Launch files
Messages
Services
Plugins
Recent questions tagged car_ros2 at Robotics Stack Exchange
Package Summary
Tags | No category tags. |
Version | 0.0.0 |
License | TODO: License declaration |
Build type | AMENT_PYTHON |
Use | RECOMMENDED |
Repository Summary
Description | Official implementation of "AnyCar to Anywhere: Learning Universal Dynamics Model for Agile and Adaptive Mobility" |
Checkout URI | https://github.com/lecar-lab/anycar.git |
VCS Type | git |
VCS Version | main |
Last Updated | 2024-10-28 |
Dev Status | UNKNOWN |
Released | UNRELEASED |
Tags | No category tags. |
Contributing |
Help Wanted (-)
Good First Issues (-) Pull Requests to Review (-) |
Package Description
Additional Links
Maintainers
- lecar
Authors
Instruction For Real-World Deployment
File Tree
- setup
source install/setup.bash
- run foxglove node:
ros2 launch foxglove_bridge foxglove_bridge_launch.xml
- run car_sim node:
XLA_PYTHON_CLIENT_MEM_FRACTION=0.3 ros2 launch car_ros2 car_sim.launch.py
- real2sim node:
ros2 launch car_ros2 real2sim_node.launch.py
Customize Parameters
In car_ros2/utils.py
def load_mppi_params() -> MPPIParams:
return MPPIParams(
spline_order=2,
sigma=0.05,
gamma_sigma=0.0,
gamma_mean=1.0,
discount=1.0,
sample_sigma=1.0,
lam=0.1,
n_rollouts=600,
a_min=[-1, -1.], # first dim steer, 2nd throttle
a_max=[1., 1.],
a_mag=[1., 1.],
a_shift=[0., 0.],
delay=0,
len_history=251,
debug=False,
fix_history=False,
num_obs=6,
num_actions=2,
num_intermediate=7,
h_knot=8,
smooth_alpha=1.0,
dynamics="transformer-jax",
dual=True,
# dynamics="dbm",
# dual=False,
)
Deploy in Real
-
Use nomachine to connect to car:
-
In Desktop:
- read Joystick signal:
ros2 run joy_linux joy_linux_node --ros-args -p dev:=/dev/input/js0
- run Joystick node:
ros2 run carros2 car_joystick_node
- steer the car
- turn off joystick
- run car_node
XLA_PYTHON_CLIENT_MEM_FRACTION=0.2 ros2 launch car_ros2 car_real.launch.py
- run foxglove bridge:
ros2 launch foxglove_bridge foxglove_bridge_launch.xml
- read Joystick signal:
-
Open 3 separate terminals
- Terminal 1:
source install/setup.bash
source ~/f1tenth/install/setup.bash
ros2 launch lecar_launch vesc.launch.py
- Terminal 2 (For Lidar SLAM):
source install/setup.bash
source ~/f1tenth/install/setup.bash
ros2 launch art_f1tenth_interface art_f1tenth_interface.launch.py
ros2 launch lecar_launch lidar.launch.py
- Terminal 2 (For VIO):
```bash source install/setup.bash
File truncated at 100 lines see the full file
Package Dependencies
Deps | Name |
---|---|
ament_copyright | |
ament_flake8 | |
ament_pep257 | |
rclpy | |
tf_transformations | |
ackermann_msgs | |
nav_msgs | |
geometry_msgs | |
visualization_msgs |
System Dependencies
Name |
---|
python3-pytest |
Dependant Packages
Launch files
Messages
Services
Plugins
Recent questions tagged car_ros2 at Robotics Stack Exchange
Package Summary
Tags | No category tags. |
Version | 0.0.0 |
License | TODO: License declaration |
Build type | AMENT_PYTHON |
Use | RECOMMENDED |
Repository Summary
Description | Official implementation of "AnyCar to Anywhere: Learning Universal Dynamics Model for Agile and Adaptive Mobility" |
Checkout URI | https://github.com/lecar-lab/anycar.git |
VCS Type | git |
VCS Version | main |
Last Updated | 2024-10-28 |
Dev Status | UNKNOWN |
Released | UNRELEASED |
Tags | No category tags. |
Contributing |
Help Wanted (-)
Good First Issues (-) Pull Requests to Review (-) |
Package Description
Additional Links
Maintainers
- lecar
Authors
Instruction For Real-World Deployment
File Tree
- setup
source install/setup.bash
- run foxglove node:
ros2 launch foxglove_bridge foxglove_bridge_launch.xml
- run car_sim node:
XLA_PYTHON_CLIENT_MEM_FRACTION=0.3 ros2 launch car_ros2 car_sim.launch.py
- real2sim node:
ros2 launch car_ros2 real2sim_node.launch.py
Customize Parameters
In car_ros2/utils.py
def load_mppi_params() -> MPPIParams:
return MPPIParams(
spline_order=2,
sigma=0.05,
gamma_sigma=0.0,
gamma_mean=1.0,
discount=1.0,
sample_sigma=1.0,
lam=0.1,
n_rollouts=600,
a_min=[-1, -1.], # first dim steer, 2nd throttle
a_max=[1., 1.],
a_mag=[1., 1.],
a_shift=[0., 0.],
delay=0,
len_history=251,
debug=False,
fix_history=False,
num_obs=6,
num_actions=2,
num_intermediate=7,
h_knot=8,
smooth_alpha=1.0,
dynamics="transformer-jax",
dual=True,
# dynamics="dbm",
# dual=False,
)
Deploy in Real
-
Use nomachine to connect to car:
-
In Desktop:
- read Joystick signal:
ros2 run joy_linux joy_linux_node --ros-args -p dev:=/dev/input/js0
- run Joystick node:
ros2 run carros2 car_joystick_node
- steer the car
- turn off joystick
- run car_node
XLA_PYTHON_CLIENT_MEM_FRACTION=0.2 ros2 launch car_ros2 car_real.launch.py
- run foxglove bridge:
ros2 launch foxglove_bridge foxglove_bridge_launch.xml
- read Joystick signal:
-
Open 3 separate terminals
- Terminal 1:
source install/setup.bash
source ~/f1tenth/install/setup.bash
ros2 launch lecar_launch vesc.launch.py
- Terminal 2 (For Lidar SLAM):
source install/setup.bash
source ~/f1tenth/install/setup.bash
ros2 launch art_f1tenth_interface art_f1tenth_interface.launch.py
ros2 launch lecar_launch lidar.launch.py
- Terminal 2 (For VIO):
```bash source install/setup.bash
File truncated at 100 lines see the full file
Package Dependencies
Deps | Name |
---|---|
ament_copyright | |
ament_flake8 | |
ament_pep257 | |
rclpy | |
tf_transformations | |
ackermann_msgs | |
nav_msgs | |
geometry_msgs | |
visualization_msgs |
System Dependencies
Name |
---|
python3-pytest |