AutoModelCar / AutoModelCarWiki

59 stars 25 forks source link

Is there something like teleop_key node for the car? #9

Closed eduardomtz closed 7 years ago

eduardomtz commented 7 years ago

And if so, whats its name?

Thanks

AutoModelCar commented 7 years ago

You can use xbox joystick, using http://wiki.ros.org/joy node. @SGSSGene : Simon do you have any tested package?

SGSSGene commented 7 years ago

I don't know of any package that does something like you probably expect from teleop_key.

The joy_node can only be run on a laptop/desktop pc. It will not work on the car. The kernel is missing the drivers for any type of joystick input device.

eduardomtz commented 7 years ago

Well my idea is to control the car from a PC, just to record a couple of ROS bags, and I thought that this could help me: manual_PC.launch but it does not or i don't know how it works

Having launched the joy node on a PC, what launch file do i have to run on the car? in order to control the car with the joystick

Thanks

SGSSGene commented 7 years ago

Hi, sorry. No launch file exists.

The feature you requested should be quite easy to implement. We'd be happy to except a pull request for such a feature or see new packages on github for this.

eduardomtz commented 7 years ago

Absolutely, if we find the time to implement it, we will be happy to contribute.

Thanks you for your attention.

noelcortes commented 7 years ago

You can use our teleop node for the car. This node uses a xbox 360 usb controller, but it can be adapted to other kind of usb controllers from the launch file. First, you need to setup a simple ROS network from the odroid computer (master) and your laptop (with the usb controller) so... u will launch the sensors and actuators in the car and run the joy and teleop nodes in your computer...

teleop node src: https://github.com/noelcortes/joystick-control/blob/master/joy_teleop.cpp

launch file: https://github.com/noelcortes/joystick-control/blob/master/controller.launch

For setup the ros network: http://wiki.ros.org/ROS/NetworkSetup

Joy package installation and info: http://wiki.ros.org/joy/Tutorials/ConfiguringALinuxJoystick

Regards.