Comments (2)
This is on my todo list. This repository is a mirror of a gitlab repository for the student organization DNV Fuel Fighter. The simulator is another repo on gitlab. However this is currently a bit of a mess. I'm working towards cleaning this up and making a github repo for it.
In the meantime I can describe how to do it yourself. The simulator used is Gazebo and the audibot repo is used to simulate the car. The modifications done are as follows:
- Publishes current steering angle. You could also skip this and just publish "0.0" on the desired topic. However, this will effect performance.
- control system for audibot. I have implemented at control system for the car that takes in a cmd_vel message and figures out what the steering angle and throttle should be. I made this using a PID controller and the bicycle model. It is also possible to publish the steering angle directly from the mpc and publish a constant value for throttle for example.
The goal is that the mpc should work for several simulators and most importantly in the real world.
from mpc_local_planner.
Hi again @yinflight!
I have now merged the necessary chages of audibot into the orginal repo. So that is compatible with what data the MPC requires.
Follow these steps if you want to test the mpc.
1. Clone audibot
git clone https://github.com/robustify/audibot.git
2. Install mpc
Install the mpc as described in the readme.
3. Changed params
change actual_steering_topic
to "/steering_state" and map_frame
to "world" in params/mpc.yaml
4. Run
First run audibot using
roslaunch audibot_gazebo single_vehicle_example.launch
In another terminal you can run the mpc
roslaunch mpc_local_planner mpc.launch
Doing this the car should drive autonomously in a loop. Let me know if you have any issues.
from mpc_local_planner.
Related Issues (8)
- [ WARN] [1639745281.600672777]: Waiting for twist message. Should be published at the topic: twi st HOT 3
- Please share the program about simulator/car HOT 1
- Compile failed :( HOT 1
- Choice Actual Steering Command
- use range instead of min/max
- Use Twist or Odom HOT 18
- Fix pragmas, remove c style header guards
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mpc_local_planner.