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

How to fix/changeposition camera in ros3djs

asked 2019-09-02 08:10:18 -0500

WhatWhat gravatar image

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 !!

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2019-10-09 08:30:58 -0500

WhatWhat gravatar image

So after some work. I figured out that for, the PointCloud2, the camera is not moving at all but the points are rotating. And ros3djs do not have something already implemented to ignore rotation. And for the cameraPostion: issue, after reading the code of ros3djs I noticed that the documentation is wrong so instead of cameraPostion: write cameraPose: to change the camera position in the scene.

edit flag offensive delete link more

Question Tools

2 followers

Stats

Asked: 2019-09-02 08:10:18 -0500

Seen: 464 times

Last updated: Oct 09 '19