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

How to control the ego with VehicleControlData? #1956

Closed
umdreamer opened this issue Jan 18, 2022 · 2 comments
Closed

How to control the ego with VehicleControlData? #1956

umdreamer opened this issue Jan 18, 2022 · 2 comments
Labels
question Further information is requested

Comments

@umdreamer
Copy link

Hi, I find the examples in the documation to control the ego vehicle using ROS2 message. I add a Vehicle Control Sensor to the vehicle. The message type is VehicleControlData. which can be displayed by cat cat lgsvl_msgs/msg/VehicleControlData.msg:

std_msgs/Header header

float32 acceleration_pct  # 0 to 1
float32 braking_pct  # 0 to 1
float32 target_wheel_angle  # radians
float32 target_wheel_angular_rate  # radians / second
uint8 target_gear

uint8 GEAR_NEUTRAL = 0
uint8 GEAR_DRIVE = 1
uint8 GEAR_REVERSE = 2
uint8 GEAR_PARKING = 3
uint8 GEAR_LOW = 4

From here, I set target_wheel_angular_rate = 0.5, but it seems to be no effect on the vehicle. How should I do to add/reduce speed, trun around of the vehicle? Thanks.

@EricBoiseLGSVL
Copy link
Contributor

Have you looked at the LGSVLControlSensor yet? Here.

@EricBoiseLGSVL EricBoiseLGSVL added the question Further information is requested label Jan 19, 2022
@umdreamer
Copy link
Author

Have you looked at the LGSVLControlSensor yet? Here.

Yes, I found it. I finally make it. Thank you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants