ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question
1

How to run Robot web tools at Non Internet environment?

asked 2019-03-19 17:29:55 -0500

yoshiros gravatar image

Hi,

I am trying to create some widgets for RobotWebTools to monitor/control my robot on the Web browser remotely. According to the nav2djs(one of the widgets of the RobotWebTools) tutorial, the HTML code was shown. So, I decided to use this code as a Base and modify for my original. The code includes the line as below.
My robot and other equipment such as laptop and tablet are all connected in the same Network. However, it is not connected to the Internet. It means all ".js" files cannot import from http://cdn~~~ .
I sought for each JS file in order to download and place at the same directory as the HTML file. However, I couldn't find most of those. Does anyone have some solution of this?

Thank you in advance.

<script type="text/javascript" src="http://cdn.robotwebtools.org/EaselJS/current/easeljs.min.js"></script>
<script type="text/javascript" src="http://cdn.robotwebtools.org/EventEmitter2/current/eventemitter2.min.js"></script>
<script type="text/javascript" src="http://cdn.robotwebtools.org/roslibjs/current/roslib.min.js"></script>
<script type="text/javascript" src="http://cdn.robotwebtools.org/ros2djs/current/ros2d.min.js"></script>
<script type="text/javascript" src="http://cdn.robotwebtools.org/nav2djs/current/nav2d.min.js"></script>
edit retag flag offensive close merge delete

Comments

1

Oh! I have just forgotten the wonderful command in Ubuntu "wget" till your comment. Thanks!

yoshiros gravatar image yoshiros  ( 2019-03-19 21:10:48 -0500 )edit

Mind closing the issue then if you fixed the issue?

stevemacenski gravatar image stevemacenski  ( 2019-03-19 21:23:40 -0500 )edit

2 Answers

Sort by ยป oldest newest most voted
2

answered 2019-03-19 21:30:52 -0500

yoshiros gravatar image

updated 2019-03-20 10:50:41 -0500

Simple solution. Download JS's by 'wget' command and change the pass in the code.
CDN server is stopping now for some reason. The solution is to change "cdn" to "static".
Download example(download to the same directory as HTML file)

$ wget -p /home/common/htmls "http://static.robotwebtools.org/EaselJS/current/easeljs.min.js"

and change the line from

<script type="text/javascript" src="http://cdn.robotwebtools.org/EaselJS/current/easeljs.min.js"></script>

to

<script src="easeljs.min.js"></script>

worked.

Reference. How to download in Ubuntu terminal: "How to download a file from a website via terminal?"

edit flag offensive delete link more
2

answered 2019-03-19 19:46:55 -0500

Did you try downloading those files into your repo and changing the source address?

edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2019-03-19 17:29:55 -0500

Seen: 749 times

Last updated: Mar 20 '19