Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

608
Views
¿Hay alguna manera de mostrar URDF desde ROS con javascript?

Traté de mostrar URDF con un script Java como ese , ingrese la descripción de la imagen aquí

de acuerdo con ese enlace tutorial http://wiki.ros.org/ros3djs/Tutorials/VisualizingAURDF y este es el código

 <!DOCTYPE html> <html> <head> <meta charset="utf-8"> <script src="../public/js/three.js"></script> <script src="../public/js/ColladaLoader.js"></script> <script src="../public/js/ColladaLoader2.js"></script> <script src="../public/js/STLLoader.js"></script> <script src="../public/js/eventemitter2.min.js"></script> <script src="../public/js/roslib.min.js"></script> <script src="../public/js/ros3d.min.js"></script> <script> /** * Setup all visualization elements when the page is loaded. */ function init() { // Connect to ROS. var ros = new ROSLIB.Ros({ url: 'ws://192.168.0.104:9090' }); // Create the main viewer. var viewer = new ROS3D.Viewer({ divID: 'urdf', width: 800, height: 600, antialias: true }); // Add a grid. viewer.addObject(new ROS3D.Grid()); // Setup a client to listen to TFs. var tfClient = new ROSLIB.TFClient({ ros: ros, angularThres: 0.01, transThres: 0.01, rate: 10.0 }) // viewer.add(tfClient); console.log('this is tfclient' + tfClient); // Setup the URDF client. var urdfClient = new ROS3D.UrdfClient({ ros: ros, tfClient: tfClient, // path : 'http://resources.robotwebtools.org/', rootObject: viewer.scene, loader : ROS3D.COLLADA_LOADER_2 }); console.log('this is urdf' + urdfClient); } </script> </head> <body onload="init()"> <h1>Simple URDF Example</h1> <div id="urdf"></div> </body> </html>

pero la cuadrícula se muestra sin el modelo 3D del robot... ¿Qué debo hacer? Esto es el resultado de ejecutar el código. Ingrese la descripción de la imagen aquí .

about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!