0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

use roslibjs no internet environment

Posted at

roslibjsをlocal環境(インターネットがない環境)で使用したい

git clone https://github.com/RobotWebTools/roslibjs.git
cd roslibjs/example
cp -r ../build ./
python3 -m http.server

インポート部分を以下のように変更

--- a/examples/simple.html
+++ b/examples/simple.html
@@ -2,8 +2,7 @@
 <html>
 <head>
 <meta charset="utf-8" />
-<script src="https://static.robotwebtools.org/EventEmitter2/current/eventemitter2.min.js"></script>
-<script src="../build/roslib.js"></script>
+<script src="./build/roslib.js"></script>
 
 <script>

http://0.0.0.0:8000/ からページを開ける

他のjavascriptモジュールも同じように扱えそう

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?