I am an ICT student and I am researching on a project controlling an industrial robot in a web browser. I found the "Visualization RWT" widgets on RobotWebTools website and use the rwt_moveit tool of it. However, I meet a problem when using this web tool on my industrial robot.
A Universal Robots UR5 robot and an Ubuntu 14.04 laptop with ROS Indigo are used for my project. I try to connect the web tool to the simulation of the robot:
$ roslaunch ur_gazebo ur5.launch
$ roslaunch ur5_moveit_config ur5_moveit_planning_execution.launch sim:=true
$ roslaunch rwt_moveit sim_demo.launch
The launch files of robot are avaliable in the package universal_robot.
Those things doesn't work well. All the parts of the robot are squeezed together at the centre of the scene:
squeeze.png
And the terminal shows such error messages:
errors.png
The tf frame in this situation (archived):
frames.gv
UPDATE With the help of my colleagues I have fixed the problem on tf by setting the rwt_moveit's launch arg fixed_frame to /world.
For now the robot model shows correctly and the terminal no longer complaints. However the functionalities still don't work. The interactive markers float above the origin and terminal shows error when I move them:
[ERROR] [1510308383.570608252, 1423.895000000]: Variable '' is not known to model 'ur5'
Exception thrown.
[ERROR] [1510308383.570712721, 1423.895000000]: Exception thrown while processing service call: Variable '' is not known to model 'ur5'

I wrote a launch file for my UR5 robot:
<launch>
<include file="$(find ur_gazebo)/launch/ur5_joint_limited.launch" />
<include file="$(find ur5_moveit_config)/launch/ur5_moveit_planning_execution.launch">
<arg name="sim" value="true" />
<arg name="limited" value="true" />
</include>
<include file="$(find rwt_moveit)/launch/sim_demo.launch">
<arg name="fixed_frame" value="/world" />
</include>
</launch>
diff of basic.js (so a reference of ColladaLoader.js is to be added in index.html):
387,388c387
< rootObject : viewer.scene,
< loader : ROS3D.COLLADA_LOADER
---
> rootObject : viewer.scene
395,396c394
< rootObject : viewer.scene,
< loader : ROS3D.COLLADA_LOADER
---
> rootObject : viewer.scene
406,407c404
< rootObject : viewer.scene,
< loader : ROS3D.COLLADA_LOADER
---
> rootObject : viewer.scene
diff of index.html (the CDN of RobotWebTools is not working since this week, so I replaced the scripts with their local copy):
18,21c18,22
< src="http://cdn.robotwebtools.org/EventEmitter2/current/eventemitter2.min.js"></script>
< <script type="text/javascript"
< src="http://cdn.robotwebtools.org/roslibjs/current/roslib.js"></script>
< <script type="text/javascript" src="http://cdn.robotwebtools.org/ros3djs/current/ros3d.js"></script>
---
> src="ros3djs/ColladaLoader.js"></script>
> <script type="text/javascript" src="ros3djs/STLLoader.js"></script>
> <script type="text/javascript" src="ros3djs/eventemitter2.min.js"></script>
> <script type="text/javascript" src="http://localhost:8000/rwt_moveit/js/roslib.js"></script>
> <script type="text/javascript" src="http://localhost:8000/rwt_moveit/js/ros3d.js"></script>
I am an ICT student and I am researching on a project controlling an industrial robot in a web browser. I found the "Visualization RWT" widgets on RobotWebTools website and use the rwt_moveit tool of it. However, I meet a problem when using this web tool on my industrial robot.
A Universal Robots UR5 robot and an Ubuntu 14.04 laptop with ROS Indigo are used for my project. I try to connect the web tool to the simulation of the robot:
The launch files of robot are avaliable in the package universal_robot.
Those things doesn't work well. All the parts of the robot are squeezed together at the centre of the scene:
squeeze.png
And the terminal shows such error messages:
errors.png
The tf frame in this situation (archived):
frames.gv
UPDATE With the help of my colleagues I have fixed the problem on tf by setting the rwt_moveit's launch arg fixed_frame to
/world.For now the robot model shows correctly and the terminal no longer complaints. However the functionalities still don't work. The interactive markers float above the origin and terminal shows error when I move them:
I wrote a launch file for my UR5 robot:
diff of basic.js (so a reference of ColladaLoader.js is to be added in index.html):
diff of index.html (the CDN of RobotWebTools is not working since this week, so I replaced the scripts with their local copy):