ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question
0

How to change the selected gear in the LGSVL simulator

asked 2021-01-27 10:38:34 -0500

guillermoherreraf gravatar image

Hello! I currently have the LGSVL simulator running on a Windows machine connected via ethernet to a Jetson Xavier NX (with Autoware.Auto and ROS2 Dashing - installed from source). I created a new node to send commands to the vehicle by publishing to the /lgsvl/vehicle_control_cmd topic. I manage to control the throttle, brake and steering, but I have not been able to change the gear to reverse. I tried changing both the target_gear and the current_gear attributes from the /lgsvl/vehicle_control_cmd and /lgsvl/vehicle_state_cmd, respectively. However, the selected_gear does not change (from /lgsvl/state_report). Any idea how to change the gear by publishing to a topic?

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
1

answered 2021-02-10 21:53:04 -0500

Josh Whitley gravatar image

I believe this is a bug with the current ROS2 bridge. I encountered this as well. I recommend creating an issue on their Github repo.

We recently fixed this in the version of LGSVL that comes with Autoware and uses a custom bridge from Robotec.ai.

edit flag offensive delete link more

Question Tools

3 followers

Stats

Asked: 2021-01-27 10:38:34 -0500

Seen: 263 times

Last updated: Feb 10 '21