From: Richard v. <va...@cs...> - 2006-11-14 22:44:33
|
On 14-Nov-06, at 2:21 PM, Sidney Cadot wrote: > Hi all, > > I would like to make Stage objects transparant to the Fiducial > sensor; right now the fiducial sensor loses identification whenever a > target disappears from its Line-Of-Sight. > > Rationale: I have some polygons in my world that are basically just > "ground area indicators"; i.e., they just serve a decorative function > for the simulation observer, and should be completely inert w.r.t. > simulation. Using the model() flags available, I can do this in any > way /except/ for the fiducial sensor. > You're right - you currently can't have a fiducial-transparent object. You need to tweaking these functions in <stage>/src/model_fiducial.c int fiducial_raytrace_match( stg_model_t* mod, stg_model_t* hitmod ); void model_fiducial_check_neighbor( gpointer key, stg_model_t* him, model_fiducial_buffer_t* mfb ); They are decently commented, so you should be able to figure out what to do. Richard/ |