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

How can I take use of nav2d.js

asked 2012-12-03 14:26:36 -0500

Gerald gravatar image

Hello, I have read almost all of it,but it is hard to get the result.As is shown in the example,
var nav = new Nav2D({ ros : ros, canvasID : "nav" }); It can create an object successfully,but the function draw() in the nav2d.js has not been called,so there will not be any picture in the browser.Is there any correct example? I hope someone can help me,thank you.


edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted

answered 2012-12-13 15:06:09 -0500

clark gravatar image

To change map size, an easy way is to run the example file /example/nav2d.html, where you could change the canvas size.

edit flag offensive delete link more

answered 2012-12-03 20:17:39 -0500

Gerald gravatar image

the function draw() has been called by drawInterval = setInterval(draw, 30); so I can see the map now,but how can I increase the size of the map?It looks so small!please help me.thank you!

edit flag offensive delete link more


The canvas is not set to draw until all information is received in the browser. Typically, the robot's position information is missing which is published by

rtoris288 gravatar image rtoris288  ( 2013-01-11 02:49:27 -0500 )edit

Question Tools


Asked: 2012-12-03 14:26:36 -0500

Seen: 577 times

Last updated: Dec 13 '12