Unable to visualize interactive markers on web app [closed]

asked 2021-01-12 12:48:33 -0600

ritubhawal gravatar image

I'm trying out the visualizingInteractiveMarkers tutorial. For some reason, the markers are not rendering in my web app. My javascript code is as follows:

// Connect to ROS.
var ros = new ROSLIB.Ros({
  url : "ws://localhost:9090"
});

// Create the main viewer.
var viewer = new ROS3D.Viewer({
  divID : 'markers',
  width : 800,
  height : 600,
  antialias : true,
});
// Setup a client to listen to TFs.
var tfClient = new ROSLIB.TFClient({
  ros : ros,
  angularThres : 0.01,
  transThres : 0.01,
  rate : 10.0,
  fixedFrame : '/rotating_frame'
});

// Setup the marker client.
var imClient = new ROS3D.InteractiveMarkerClient({
  ros : ros,
  tfClient : tfClient,
  topic : '/basic_controls',
  camera : viewer.camera,
  rootObject : viewer.selectableObjects,
});

I made all the necessary installations and I can view the interactive markers on Rviz. But it's not rendering on the web app. What could be the reason?

edit retag flag offensive reopen merge delete

Closed for the following reason duplicate question by ritubhawal
close date 2021-01-15 10:59:28.985964