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

WhatWhat's profile - activity

2022-02-14 00:25:27 -0500 received badge  Famous Question (source)
2021-03-03 17:44:40 -0500 received badge  Famous Question (source)
2020-08-31 03:27:31 -0500 received badge  Notable Question (source)
2020-08-31 03:27:31 -0500 received badge  Popular Question (source)
2020-07-01 12:14:12 -0500 received badge  Notable Question (source)
2020-07-01 12:14:12 -0500 received badge  Popular Question (source)
2020-06-10 22:05:53 -0500 received badge  Famous Question (source)
2020-06-10 22:05:53 -0500 received badge  Notable Question (source)
2020-05-03 07:48:45 -0500 received badge  Famous Question (source)
2019-12-25 10:02:25 -0500 received badge  Notable Question (source)
2019-10-09 16:18:51 -0500 received badge  Popular Question (source)
2019-10-09 08:31:06 -0500 marked best answer How to fix/changeposition camera in ros3djs

Hi,

So I have this PointCloud2 messages which are generated from a drone camera and I am trying to render them on the browser using ros3djs. the cloud of points appear in my viewer but I couldn't change the camera initial position using cameraPosition : when initializing the options of the ROS3D.Viewer Object. A second problem is that the scene auto moves/rotates when the camera of the drone moves. I tried changing the Viewer.cameraControls.autoRotate to false to fix the camera view but nothing changes. I am using ros-Kinetic. How can I fix that?

Thank you in advance !!

2019-10-09 08:30:58 -0500 answered a question How to fix/changeposition camera in ros3djs

So after some work. I figured out that for, the PointCloud2, the camera is not moving at all but the points are rotating

2019-10-09 08:23:36 -0500 asked a question tf2_web_republisher TF_OLD_DATA error when replaying bag file

tf2_web_republisher TF_OLD_DATA error when replaying bag file I am publishing through tf2_web_republisher a TF tree to t

2019-09-27 08:54:13 -0500 marked best answer error when loading a mesh with ros3djs

I am trying to load a .stl 3d model of a drone in a html page using Javascript and ros3djs as follow :

 const mesh = new ROS3D.MeshResource({
      resource: 'models/3d-model-drone/octo-asm.stl',
      path: 'ws://localhost:9090/',
      warnings: true
  });

but I keep getting this object as error:

error
​bubbles: false
​cancelBubble: false
​cancelable: false
​composed: false
​currentTarget: null
​defaultPrevented: false
​eventPhase: 0
​explicitOriginalTarget: XMLHttpRequest { readyState: 4, timeout: 0, withCredentials: false, … }
​isTrusted: true
​lengthComputable: false
​loaded: 0
​originalTarget: XMLHttpRequest { readyState: 4, timeout: 0, withCredentials: false, … }
​returnValue: true
​srcElement: XMLHttpRequest { readyState: 4, timeout: 0, withCredentials: false, … }
​target: XMLHttpRequest { readyState: 4, timeout: 0, withCredentials: false, … }
​timeStamp: 601
​total: 0
​type: "error"
​<get isTrusted()>: function isTrusted()
​<prototype>: ProgressEventPrototype { lengthComputable: Getter, loaded: Getter, total: Getter, … }
ros3d.min.js:1:579846
    onError file:///home/.../script/lib/ros3djs/build/ros3d.min.js:1
    load file:///home/.../script/lib/ros3djs/build/ros3d.min.js:1

what does this mean? is my path false ? I tried different paths but I couldn't get it to work.

EDIT: I am using this modified ros3djs library (link to my merge request request) but I have tried using with the normal one and the same error pops up.

And one of the model that I m using is in this link all models that I try loading give the same error.

EDIT2/Problem2: as @Solrac3589 recommended installing Apache2 to use as a server. I used for testing the example @Solrac3589 created. After putting the code in /var/www/htmland opening the index.html by typing localhost in my browser (I couldn't open the the html files directly from the file manager) the CORS warning message does not pop up any more but I get the following new object error from ros3djs :

load
bubbles: false
cancelBubble: false
cancelable: false
composed: false
currentTarget: null
defaultPrevented: false
eventPhase: 0
explicitOriginalTarget: XMLHttpRequest { readyState: 4, timeout: 0, withCredentials: false, … }
isTrusted: true
lengthComputable: true
loaded: 271
originalTarget: XMLHttpRequest { readyState: 4, timeout: 0, withCredentials: false, … }
returnValue: true
srcElement: XMLHttpRequest { readyState: 4, timeout: 0, withCredentials: false, … }
target: XMLHttpRequest { readyState: 4, timeout: 0, withCredentials: false, … }
timeStamp: 92
total: 271
type: "load"
<get isTrusted()>: function isTrusted()
<prototype>: ProgressEventPrototype { lengthComputable: Getter, loaded: Getter, total: Getter, … }
ros3d.min.js:1:579846
    onError http://localhost/js/ros3d.min.js:1
    load http://localhost/js/ros3d.min.js:1
2019-09-27 08:54:13 -0500 received badge  Scholar (source)
2019-09-27 08:53:52 -0500 answered a question error when loading a mesh with ros3djs

Credits to Solrac3589 The first error was caused by the browser blocking access to local files. Browsers do not allow c

2019-09-27 08:34:52 -0500 edited question error when loading a mesh with ros3djs

error when loading a mesh with ros3djs I am trying to load a .stl 3d model of a drone in a html page using Javascript an

2019-09-27 08:33:53 -0500 commented question error when loading a mesh with ros3djs

I found the problem the path was wrong. Fixing it fixed all errors and loaded the model in the viewer. Thank you very mu

2019-09-27 07:57:45 -0500 edited question error when loading a mesh with ros3djs

error when loading a mesh with ros3djs I am trying to load a .stl 3d model of a drone in a html page using Javascript an

2019-09-27 07:52:55 -0500 commented question error when loading a mesh with ros3djs

please check EDIT2 above.

2019-09-27 07:52:15 -0500 edited question error when loading a mesh with ros3djs

error when loading a mesh with ros3djs I am trying to load a .stl 3d model of a drone in a html page using Javascript an

2019-09-27 07:51:41 -0500 edited question error when loading a mesh with ros3djs

error when loading a mesh with ros3djs I am trying to load a .stl 3d model of a drone in a html page using Javascript an

2019-09-27 07:51:17 -0500 edited question error when loading a mesh with ros3djs

error when loading a mesh with ros3djs I am trying to load a .stl 3d model of a drone in a html page using Javascript an

2019-09-27 04:47:28 -0500 commented question error when loading a mesh with ros3djs

I just noticed that you mentioned in your README.md something about setting up an apache2 server. After some research th

2019-09-27 04:05:46 -0500 commented question error when loading a mesh with ros3djs

Hi thank you for your response but I still get the error even in your example. I noticed that there is always this warni

2019-09-27 04:01:55 -0500 commented question error when loading a mesh with ros3djs

Hi thank you for your response but I still get the error even in your example. I noticed that there is always this warni

2019-09-25 15:55:02 -0500 received badge  Popular Question (source)
2019-09-25 10:38:46 -0500 commented question error when loading a mesh with ros3djs

thank you for your reply. I added a links above.

2019-09-25 10:37:54 -0500 edited question error when loading a mesh with ros3djs

error when loading a mesh with ros3djs I am trying to load a .stl 3d model of a drone in a html page using Javascript an

2019-09-24 05:57:40 -0500 edited question error when loading a mesh with ros3djs

error when loading a mesh I am trying to load a .stl 3d model of a drone in a html page using Javascript and ros3djs as

2019-09-24 05:57:40 -0500 received badge  Editor (source)
2019-09-24 05:52:42 -0500 asked a question error when loading a mesh with ros3djs

error when loading a mesh I am trying to load a .stl 3d model of a drone in a html page using Javascript and ros3djs as

2019-09-02 08:10:18 -0500 asked a question How to fix/changeposition camera in ros3djs

How to fix/changeposition camera in ros3djs Hi, So I have this PointCloud2 messages which are generated from a drone ca

2019-08-30 04:23:19 -0500 marked best answer How can I use mjpeg_server package ?

Hi,

So I am really new to ROS. and I m trying to use the image/video that mjpeg_server(or ros_web_video) gets from a topic I created to my own HTML page not the default one that the package uses. I need only the image. I tried directly grabbing it from the link but i get in my browser's console couldn't connect to 8080 (maybe because I m already connected to an other websocket that i launched with rosbridge pkg which uses port 9090). I am using ROS Kinetic with Ubuntu 16.04.

Thank you in advance!

2019-08-30 03:39:25 -0500 answered a question How can I use mjpeg_server package ?

So I figured it out. i used the web_video_server package to do it. At first I used an <iframe> to display the vide

2019-08-30 03:28:35 -0500 received badge  Enthusiast
2019-08-23 09:26:00 -0500 received badge  Organizer (source)
2019-08-22 13:38:04 -0500 asked a question How can I use mjpeg_server package ?

How can I use mjpeg_server package ? Hi, So I am really new to ROS. and I m trying to use the image/video that mjpeg_se