Although my project builds, I notice that it gives me a warning that WalkMC is a
noop because my target does not have legs. However, I define that the target
has legs in my KHR2Info.h file, which is included in the RobotInfo files, which
is included in Config.h, which is included in WalkMC. WalkMC seems to be the
only walk command that has a problem with this.
Jason
--- In tekkotsu_dev@yahoogroups.com, "jtennys" <jtennys@...> wrote:
>
> Thanks, I got to looking at that today and found the mismatched values. The
ControllerGUI now runs fine and with my joint names.
>
> --- In tekkotsu_dev@yahoogroups.com, Ethan Tira-Thompson <ejt@> wrote:
> >
> > The most common cause is that one of the Num* values doesn't match the
> > values in *Names (e.g. NumOutputs vs. outputNames). Unfortunately, C/C
> > ++ is kind of dumb in that it lets you get away with char* names[10] =
> > { "a", "b" }, just supplying NULL for the missing elements.
> >
> > Also, the name arrays *are* supposed to end with a single NULL entry
> > (and thus have size NumXXX+1 to match)... this is used for some
> > generic functions which run through the array and rely on a NULL-
> > termination entry to detect the end of the array values...
> >
> > So, if nothing jumps out at you in the info file, run tekkotsu in gdb
> > and it will catch the crash, then just look at the variable that's
> > being used, hopefully it will make sense.
> >
> > -Ethan
> >
> > On Jul 1, 2009, at 11:48 AM, jtennys wrote:
> >
> > >
> > >
> > > My project built successfully after modifying the RobotInfo files.
> > > However, when I go to run the executable, this is what happens:
> > >
> > > jason@jason-desktop:~/project$ ./tekkotsu-SZ_KHR2
> > > terminate called after throwing an instance of 'std::logic_error'
> > > what(): basic_string::_S_construct NULL not valid
> > > Aborted
> > >
> > > I wasn't sure where to go with this one.
> > >
> > > Jason
> > >
> > >
> > >
> >
>