{"id":13703253,"url":"https://github.com/osrf/car_demo","last_synced_at":"2025-05-05T07:30:52.295Z","repository":{"id":39861946,"uuid":"94942297","full_name":"osrf/car_demo","owner":"osrf","description":null,"archived":false,"fork":false,"pushed_at":"2022-01-28T08:59:41.000Z","size":64704,"stargazers_count":527,"open_issues_count":7,"forks_count":274,"subscribers_count":31,"default_branch":"master","last_synced_at":"2024-11-13T10:37:56.403Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/osrf.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-06-20T23:05:01.000Z","updated_at":"2024-11-04T09:24:58.000Z","dependencies_parsed_at":"2022-08-09T15:35:26.861Z","dependency_job_id":null,"html_url":"https://github.com/osrf/car_demo","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/osrf%2Fcar_demo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/osrf%2Fcar_demo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/osrf%2Fcar_demo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/osrf%2Fcar_demo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/osrf","download_url":"https://codeload.github.com/osrf/car_demo/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252458343,"owners_count":21751020,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-08-02T21:00:52.503Z","updated_at":"2025-05-05T07:30:47.285Z","avatar_url":"https://github.com/osrf.png","language":"C++","funding_links":[],"categories":["Simulation"],"sub_categories":["Version Control","Calibration and Transformation"],"readme":"# Demo of Prius in ROS/GAZEBO\n\nThis is a simulation of a Prius in [gazebo 9](http://gazebosim.org) with sensor data being published using [ROS kinetic](http://wiki.ros.org/kinetic/Installation)\nThe car's throttle, brake, steering, and gear shifting are controlled by publishing a ROS message.\nA ROS node allows driving with a gamepad or joystick.\n\n# Video + Pictures\n\nA video and screenshots of the demo can be seen in this blog post: https://www.osrfoundation.org/simulated-car-demo/\n\n![Prius Image](https://www.osrfoundation.org/wordpress2/wp-content/uploads/2017/06/prius_roundabout_exit.png)\n\n# Requirements\n\nThis demo has been tested on Ubuntu Xenial (16.04)\n\n* An X server\n* [Docker](https://www.docker.com/get-docker)\n* [nvidia-docker2](https://github.com/nvidia/nvidia-docker/wiki/Installation-(version-2.0))\n* The current user is a member of the docker group or other group with docker execution rights.\n* [rocker](https://github.com/osrf/rocker)\n\n# Recommended\n\n* A joystick\n* A joystick driver which creates links to `/dev/input/js0` or `/dev/input/js1`\n\nThis has been tested with the Logitech F710 in Xbox mode. If you have a different joystick you may need to adjust the parameters for the very basic joystick_translator node: https://github.com/osrf/car_demo/blob/master/car_demo/nodes/joystick_translator\n\n# Building\n\nFirst clone the repo, then run the script `build_demo.bash`.\nIt builds a docker image with the local source code inside.\n\n```\n$ cd car_demo\n$ ./build_demo.bash\n```\n\n# Running\n\nConnect a game controller to your PC.\nUse the script `run_demo.bash` to run the demo.\n\n```\n$ ./run_demo.bash\n```\nAn [RVIZ](http://wiki.ros.org/rviz) window will open showing the car and sensor output.\nA gazebo window will appear showing the simulation.\nEither use the controller to drive the prius around the world, or click on the gazebo window and use the `WASD` keys to drive the car.\n\nIf using a Logitech F710 controller:\n\n* Make sure the MODE status light is off\n* Set the swtich to XInput mode\n* The right stick controls throttle and brake\n* The left stick controls steering\n* Y puts the car into DRIVE\n* A puts the car into REVERSE\n* B puts the car into NEUTRAL\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fosrf%2Fcar_demo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fosrf%2Fcar_demo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fosrf%2Fcar_demo/lists"}