DRL_based_SelfDrivingCarControl icon indicating copy to clipboard operation
DRL_based_SelfDrivingCarControl copied to clipboard

The simulator!

Open fayjie92 opened this issue 6 years ago • 17 comments

I am glad to work on your codes. While working, the simulator is not loading. Can you describe the simulator connections? Is it uses Socket? or it starts automatically with the python code that you've provided?

Thanks, Fayjie

fayjie92 avatar Sep 26 '17 01:09 fayjie92

Thanks for working on my code! It uses socketio to connect DQN code(Python) and Simulator(Unity). At first, execute python code (drive_Combined.py) Then download the simulator file via my link on the readme.md and execute simulator exe file. After that they connects each other and run!

Kyushik avatar Sep 26 '17 02:09 Kyushik

I'm using your simulator for my project work, is there any way to cite it, also is there any name for this simulator??

matrixBT avatar May 29 '18 18:05 matrixBT

@Kyushik

matrixBT avatar May 30 '18 21:05 matrixBT

@matrixBT Sorry for late reply. I went to military training for a month, so I couldn't use any electronic devices. Actually, there is no cite or name for the simulator. I think adding github link is okay. Thanks for using my simulator for your project work!! Are you writing a paper with this simulator?

Kyushik avatar Jun 22 '18 00:06 Kyushik

Excuse me , I can't find that 'drive_Combined.py'file in your git hub. Where shod I find that python file?

champcui avatar Aug 15 '20 04:08 champcui

@champcui Hi! 'drive_combined.py' is a file that existed in old version. Now you should run the files in the 'RL_algorithms' folder

Kyushik avatar Aug 16 '20 04:08 Kyushik

@champcui Hi! 'drive_combined.py' is a file that existed in old version. Now you should run the files in the 'RL_algorithms' folder

Thank u very much! I can use Rl_algorthms now, and I want to know how to get photo that in your paper just like "lanechange" "sensor.gif", and so on.

champcui avatar Sep 19 '20 14:09 champcui

I recorded a video and converted it to gif :)

Kyushik avatar Sep 21 '20 01:09 Kyushik

我录制了视频并将其转换为gif :)

okay, and how should I get that Input Configuration ?for example averge speed ,lanechange and number of overtaking. Because I can just get step and score in that algorthms.ipynb.

champcui avatar Sep 21 '20 09:09 champcui

我录制了视频并将其转换为gif :)

It's much trouble for me if I record these every data in running video.

champcui avatar Sep 21 '20 09:09 champcui

You can get speed and other data using vector observation in ipynb file :)

Kyushik avatar Sep 22 '20 01:09 Kyushik

您可以使用ipynb文件中的矢量观测来获取速度和其他数据:)

Code for tensorboard tensorboard

def setup_summary(): episode_speed = tf.Variable(0.) episode_overtake = tf.Variable(0.) episode_lanechange = tf.Variable(0.)

tf.summary.scalar('Average_Speed/' + str(Num_plot_episode) + 'episodes', episode_speed)
tf.summary.scalar('Average_overtake/' + str(Num_plot_episode) + 'episodes', episode_overtake)
tf.summary.scalar('Average_lanechange/' + str(Num_plot_episode) + 'episodes', episode_lanechange)

summary_vars = [episode_speed, episode_overtake, episode_lanechange]
summary_placeholders = [tf.placeholder(tf.float32) for _ in range(len(summary_vars))]
update_ops = [summary_vars[i].assign(summary_placeholders[i]) for i in range(len(summary_vars))]
summary_op = tf.summary.merge_all()
return summary_placeholders, update_ops, summary_op

Sorry to bother you again! Actually, I find these code in your ipynb. But I can not find these calculate data at last. I realy want to use these data. Thanks!

champcui avatar Sep 23 '20 02:09 champcui

I wrote information about vector observation on readme as follows. I think this info can help you :) image

Kyushik avatar Sep 23 '20 10:09 Kyushik

I know actions is related to max Qvalue. But I can't find actions and rewards in your ipynb. So how should I do to find it? Thanks for your paintience again!

champcui avatar Oct 25 '20 05:10 champcui

Action is decided based on the neural network of the code and reward is returned as a result of the action as follows. image image

Kyushik avatar Oct 26 '20 02:10 Kyushik

结果 Thanks! And I want to know how control your speed and lanechange in ipynb?

champcui avatar Oct 26 '20 02:10 champcui

The speed and lanechange should be changed in the Unity project.

Kyushik avatar Oct 26 '20 02:10 Kyushik