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

Test control messages have no effect #27

Closed
yangydavid opened this issue Jan 11, 2019 · 6 comments
Closed

Test control messages have no effect #27

yangydavid opened this issue Jan 11, 2019 · 6 comments

Comments

@yangydavid
Copy link

Hi,

I'm experiencing difficulties with test control commands. I spanned a "hero" vehicle by using manual_control.py and launched the bridge ros package. I'm able to echo the topics posted by the bridge, but publishing to the /carla/ego_vehicle/ackermann_cmd topic doesn't do anything - the car only reacts to the keyboard.
I tried removing everything related to the keyboard in the manual_control.py but no luck - the ackermann_cmd still doesn't do anything.

Let me know what might be the problem.

@fabianoboril
Copy link
Collaborator

Hi,
deactivate sending control msgs in the manual_control client, and then it works ;-)
(Line 262 in https://github.com/carla-simulator/carla/blob/master/PythonAPI/manual_control.py)

@yangydavid
Copy link
Author

yangydavid commented Jan 11, 2019

@fabianoboril Hi, I just tried what you suggested, it does disable the keyboard but the control command is still not working. Any hints on how to solve it? Thanks!
An interesting observation: if I send an unreasonably high steering angle, the ros bridge indicates an error: [ERROR] [1547232927.476727, 708.026874]: Max steering angle reached, clipping value
This means that the bridge is accepting the command, but they just don't have any effect on the vehicle.

@fabianoboril
Copy link
Collaborator

Hi,
are you publishing the ackermann msg as described in the README, i.e.
rostopic pub /carla/ego_vehicle/ackermann_cmd ackermann_msgs/AckermannDrive "{steering_angle: 0.0, steering_angle_velocity: 0.0, speed: 10, acceleration: 0.0, jerk: 0.0}" -r 10

Do you use the rosbridge with the PID controller mode, or with throttle/brake input mode? (See https://github.com/carla-simulator/ros-bridge/blob/master/config/settings.yaml --> controlmode)?

Can you provide the data published via the ego_vehicle_control_info topic? Thank you.

@fabianoboril
Copy link
Collaborator

Hi,
and maybe try PR #31 ;-)

@yangydavid
Copy link
Author

The PR helped. Thanks

@ruixuanz
Copy link

I can't find the solution to #31 Could you send me a screenshot of it because I encountered the same problem which is there is no control of the ego_vehicle after type in the Ackermann_control command.

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

No branches or pull requests

3 participants