I have a file very similar to the everything.world file that comes with stage. When I run my controller however, it tells me "skipping subscription to unknown device laser:0", then shuts down the stage driver.

Description: Description: ASFADakota Ginn
Alabama School of Fine Arts
1800 Reverend Abraham Woods Jr. Boulevard
Birmingham, AL 35203
T: 205.276.1387
E: dginn@asfa.k12.al.us


From: Richard Vaughan [vaughan@sfu.ca]
Sent: Wednesday, February 26, 2014 3:22 PM
To: PS users
Subject: Re: [Playerstage-users] Error: Stage doesn't support interface type 6

Stage supports the "ranger" interface, which is a generalization of the old laser and sonar interfaces. All the example code that ships with Stage uses that interface, so you have several examples to look at.

- rtv


On Wed, Feb 26, 2014 at 12:10 PM, Dakota Ginn <dginn@asfa.k12.al.us> wrote:
Hello, my name is Dakota and I am a senior in high school working on a research project required for graduation. I am attempting to make a robot follow a wall until it finds an objective. I'm trying to use a laser to determine when the robot should continue moving forward and when it should start turning. I've been trying to figure this out for a few weeks, but every time I resolve one error another occurs.
The code for the robot in the world file is:
pioneer2dx
(         
  name "r0"
  pose [ -6.946 -6.947 0 45.000 ]
  sicklaser( pose [ 0 0 0 0 ] ) \
  localization "gps"
  localization_origin [ 0 0 0 0 ]
)

In the cfg file:
driver
(
  name "stage"
  provides [ "position2d:0" "laser:0" ]
  model "r0"
)
And finally when it is called in the controller (I'm using a python wrapper to code the controller)
l = playerc_laser(c,0)
if l.subscribe(PLAYERC_OPEN_MODE) != 0:
 raise playerc_error_str()

if l.get_geom() != 0:
 raise playerc_error_str()
print 'Laser pose: (%.3f,%.3f,%.3f)' % (l.pose[0],l.pose[1],l.pose[2])

while not objectivefound:
 if c.read() == None:
  raise playerc_error_str()
 if l.scan_count == 0:
  p.set_cmd_vel(2.0,0.0,0.0,1)
 else:
  p.set_cmd_vel(0.0,0.0,20*math.pi/180,1)

Any help would be greatly appreciated, I'm very new and very inexperienced with player/stage, and to graduate from my school I have to do well on this project. Thanks to anyone who can help, and thanks to everyone for your time and consideration.

Description: Description: ASFADakota Ginn
Alabama School of Fine Arts
1800 Reverend Abraham Woods Jr. Boulevard
Birmingham, AL 35203


------------------------------------------------------------------------------
Flow-based real-time traffic analytics software. Cisco certified tool.
Monitor traffic, SLAs, QoS, Medianet, WAAS etc. with NetFlow Analyzer
Customize your own dashboards, set traffic alerts and generate reports.
Network behavioral analysis & security monitoring. All-in-one tool.
http://pubads.g.doubleclick.net/gampad/clk?id=126839071&iu=/4140/ostg.clktrk
_______________________________________________
Playerstage-users mailing list
Playerstage-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/playerstage-users