Open CRH380B-6216L opened 7 years ago
@CRH380B-6216L thank you for your investigation, I think we need https://github.com/tork-a/visualization_rwt/pull/66 for UR5 example, it also requires
rosrun tf static_transform_publisher 0 0 0 0 0 0 /world /start/world 100
rosrun tf static_transform_publisher 0 0 0 0 0 0 /world /goal/world 100
but not sure why we need this, I remember we can run this package without this in 'groovy/hydro' time.
BTW, I'm not familiar with javascript world, but do you think CDN will provide script for RobotWebTools near future? or should we provide from local file? And what browser are you using?
index.html (the CDN of RobotWebTools is not working since this week, so I replaced the scripts with their local copy):
@k-okada Thanks for your attention. I will validate the fixes soon.
The case is that the JavaScript CDNs provided by RobotWebTools (cdn.robotwebtools.org) is not working right now; accessing the script from there will return a 403 error. So that's the reason I replace them with local files. Besides, some of the dependencies are missing, so I also added them into tork-a/rwt_ros#20 and load them from that package. I am using Firefox in my project.
RWT CDN and demo server are currently experiencing hosting issue. I suggest to host them locally or directly from github for now. I will post in the mailing list as soon as I get some conclusion.
https://groups.google.com/d/msg/robot-web-tools/PlW1ECoL91Y/1ss6BPp_DAAJ
@k-okada I have tested with applying the changes at #66 in my rwt_moveit folder. It seems that the solution only fixed some problems. For now the UI, robots shows correctly and joints' slider works. But moving of the interactive markers does not apply to the state of (start/goal) robot, and planning & execution are not working.
The output when pressing Plan button (Python warning only shows at first time):
[ INFO] [1510578136.192191091, 43.464000000]: Planning request received for MoveGroup action. Forwarding to planning pipeline.
[ WARN] [1510578136.193551765, 43.467000000]: No valid joint constraints
[ERROR] [1510578136.193646085, 43.467000000]: Unable to construct goal representation
/home/youbot-main/catkin_ws/src/visualization_rwt/rwt_moveit/nodes_bas/moveit_publisher.py:93: SyntaxWarning: The publisher should be created with an explicit keyword argument 'queue_size'. Please see http://wiki.ros.org/rospy/Overview/Publishers%20and%20Subscribers for more information.
pub = rospy.Publisher('/update_joint_position', Float64MultiArray)
/home/youbot-main/catkin_ws/src/visualization_rwt/rwt_moveit/nodes_bas/moveit_publisher.py:94: SyntaxWarning: The publisher should be created with an explicit keyword argument 'queue_size'. Please see http://wiki.ros.org/rospy/Overview/Publishers%20and%20Subscribers for more information.
stock_pub = rospy.Publisher('/stock_joint_position', Float64MultiArray)
The output when pressing Plan & Execute button:
[ INFO] [1510580598.148812149, 48.956000000]: Combined planning and execution request received for MoveGroup action. Forwarding to planning and execution pipeline.
[ WARN] [1510580598.148893173, 48.956000000]: Execution of motions should always start at the robot's current state. Ignoring the state supplied as start state in the motion planning request
[ WARN] [1510580598.148940060, 48.956000000]: Execution of motions should always start at the robot's current state. Ignoring the state supplied as difference in the planning scene diff
[ INFO] [1510580598.149026881, 48.956000000]: Planning attempt 1 of at most 1
[ERROR] [1510580598.149103052, 48.956000000]: Found empty JointState message
[ERROR] [1510580598.149136747, 48.956000000]: Found empty JointState message
[ERROR] [1510580598.149223939, 48.956000000]: Found empty JointState message
[ERROR] [1510580598.149426641, 48.956000000]: Found empty JointState message
[ WARN] [1510580598.149559494, 48.956000000]: No valid joint constraints
[ERROR] [1510580598.149593562, 48.956000000]: Unable to construct goal representation
The output when moving any interactive marker:
[ERROR] [1510580636.527204987, 72.430000000]: No kinematics solver instantiated for group 'endeffector'
The output when checking/unchecking the checkbox of start/goal (errors come from browser):
TypeError: startState.add is not a function (2) basic.js:421:21
TypeError: start_im_client.hideIntMarker is not a function (2) basic.js:424:21
TypeError: goal_im_client.showIntMarker is not a function (2) basic.js:432:25
TypeError: goal_im_client.hideIntMarker is not a function (2) basic.js:437:21
hi, did you change the bottom button from 'endeffector' to 'manipulator'?
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):