From: kparvate <ka...@gm...> - 2013-01-07 02:07:27
|
Hi Rich, Thanks for your quick reply. I was able to get VFH to work, but after experimenting with it, I found it didn't suit my needs that well. I'm trying to change the velocity of the GoTo function, but when used with VFH, it has an acceleration. While this makes it more realistic, it doesn't fit my experiment design. I've tried using GoTo player_pose2d_t pos, player_pose2d_t vel) but the speed never goes past .4, regardless of what vel is. Am I doing something wrong? Or, is there a better way to change the velocity of the GoTo function? Thanks again -- Kanaad Rich Mattes-2 wrote: > > On 01/06/2013 02:09 PM, kparvate wrote: >> Hi all, >> >> I am designing a simulation in which the speed of the robot must vary >> greatly. I'd like to increase the top speed of the robot, as it seems >> that >> with the default "stage" driver the maximum speed achievable is 1. I am >> trying to use VFH instead of stage, but I am having problems getting it >> to >> work. >> > > Thanks for sending your config files along, I was able to reproduce your > problem pretty quickly. > > The error output isn't great, but the problem is with the definition of > your LIDAR model in compactcar.inc. The ranger model type expects a > sub-model called "sensor", which contains the parameters you've listed. > You didn't have one, so when Stage looked up the sensor object it just > got a null pointer, which led to the segmentation fault you saw. Check > out the ranger model reference[1] for more details on how to properly > define a ranger model. Also, note that "silver" isn't a valid color > string; use a string in Stage/assets/rgb.txt, or use the color_rgba > model property and specify your own rgba values (between 0 an 1). > > The sick.inc that ships with Stage is also a good starting point for > making a laser. I think yours should end up looking something like this: > > ===== > define LIDAR ranger > ( > sensor( > range [ 0.0 8.0 ] > pose [ 0 0 0.1 0 ] > fov 180 > samples 180 > color_rgba [0 0 1 0.15] > ) > > block ( > points 4 > point[0] [0 0] > point[1] [0 1] > point[2] [1 1] > point[3] [1 0] > z [0 .26] > ) > > color_rgba [.5 .5 .5 1] > size [.1 .1 .2] > ) > ===== > > Rich > > [1] http://rtv.github.com/Stage/group__model__ranger.html > > > ------------------------------------------------------------------------------ > Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS, > MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current > with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft > MVPs and experts. ON SALE this month only -- learn more at: > http://p.sf.net/sfu/learnmore_123012 > _______________________________________________ > Playerstage-users mailing list > Pla...@li... > https://lists.sourceforge.net/lists/listinfo/playerstage-users > > -- View this message in context: http://old.nabble.com/VFH-with-Stage-4.1.1-and-Player-3.1.0-tp34865572p34866498.html Sent from the playerstage-users mailing list archive at Nabble.com. |