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

除了EIM之外其他的scratch插件在哪能看到呢? #38

Closed
hyansuper opened this issue Aug 31, 2019 · 4 comments

Comments

@hyansuper
Copy link

commented Aug 31, 2019

看了这篇文章https://codelab-adapter-docs.codelab.club/dev_guide/helloworld/
其中说插件需要两个部分:

  1. scratch3.0网页中的插件(内应)
  2. 在CodeLab Adapter中写一个插件,代理硬件设备、AI或其他程序

scratch端的插件(内应)示例我只找到了EIM,请问其他的插件(比如Tello, Vector等)是开源的吗?
我本来是想看看怎么处理异步发送的消息如何等待它成功执行返回,比如下面的伪代码

Scratch blocks:
<Vector drive_forward 100>
<Vector turn_left 90>

<drive_forward 100>代码块执行可能要几秒钟才返回,如何让它阻塞直到成功返回后在执行下一句呢?

另外请问codelab-adapter有开源吗?
谢谢!

@wwj718

This comment has been minimized.

Copy link
Contributor

commented Sep 3, 2019

@hyansuper
codelab-adapter的开源计划在这儿: https://www.codelab.club/blog/codelab-adapter-v2/

异步与同步的转化, 在EIM中有包含这部分: https://github.com/Scratch3Lab/scratch3_eim/blob/v2/index.js#L290

我今天会写一个例子

Scratch相关的插件,在陆续开放出来,目前已经开放了几个: https://github.com/scratch3lab

@wwj718

This comment has been minimized.

Copy link
Contributor

commented Sep 3, 2019

@hyansuper

This comment has been minimized.

Copy link
Author

commented Sep 3, 2019

谢谢!
我目前采用的方案是用ROS当做中间节点,起到类似codelab adapter的作用,然后用roslaunch来启停extension 或server。我发现这个项目跟EIM的作用很类似https://github.com/Affonso-Gui/scratch3-ros-vm,这样更方便我接入自己的一些3d打印的机器人玩玩。

Ps 看了blog.just4fun,您真是太有才了!

@hyansuper hyansuper closed this Sep 3, 2019

@wwj718

This comment has been minimized.

Copy link
Contributor

commented Sep 4, 2019

@hyansuper 谢谢鼓励,博客比较杂乱。

codelab adapter受ROS作者的《programming robots with ros》一书影响比较深,所以可以把它当作一个ROS的简易版使用,核心都是异步消息系统

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants
You can’t perform that action at this time.