4.2.6 -> Class creator bug !

Talks about know version bugs and gives you a solution

Moderator: Admins

4.2.6 -> Class creator bug !

Postby fabian » Sat May 09, 2009 11:06 am

It think there is a bug in the class crator:

for example:
/////////////////////////////////////////////////////////
#include "ModaCPP.h"
using namespace ModaCPP;

#ifndef __THEROBOT__H
#define __THEROBOT__H
//devices names

//Type Motor
#define TheRobot_MOTOR00_PATH "/hinge2_right/a1/m"
#define TheRobot_MOTOR00_INDEX 0
#define TheRobot_MOTOR01_PATH "/hinge2_left/a1/m"
#define TheRobot_MOTOR01_INDEX 1

the devices path start with "/" whereas it should not. That causes the devices cannot be found in the robot !!

I solved it by removing the '/' and all is now OK
Fab
fabian
 
Posts: 20
Joined: Sun Jun 15, 2008 8:45 am

Postby LR » Sat May 09, 2009 12:05 pm

Yes there is a bug. We will fix it in the next update.
Awaiting this update, you can remove the first char '/' from devices names in the generated .h file (that's what you did :))

This bug is also present in the C# generated code.
LR
LR
 
Posts: 224
Joined: Mon Feb 12, 2007 10:55 pm
Location: FR


Return to Bugs

Who is online

Users browsing this forum: No registered users and 0 guests

cron