Ask Your Question
0

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.

Gerald

edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted
2

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
0

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

Comments

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 http://www.ros.org/wiki/robot_pose_publisher

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

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

Stats

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

Seen: 275 times

Last updated: Dec 13 '12