|
|
You should at least tell us what is your problem (that is what problem are you trying to solve using fuzzy logic and what are your troubles with it).
Veni, vidi, vici.
|
|
|
|
|
i am implementing fuzzy logic for allignment of my robot drive so that it will drive smoothly i am implementing an IEEE research paper in which they have used it and that i am implementing .
|
|
|
|
|
OK, but what are your troubles with it?
Veni, vidi, vici.
|
|
|
|
|
i am actually confused from where i have to start ist step is to fuzify input but how in programming how can i this is confusing me
|
|
|
|
|
What are your inputs?
Are you able to define the membership functions?
Veni, vidi, vici.
|
|
|
|
|
no 
|
|
|
|
|
Well, at least you should be able to identify your inputs.
Veni, vidi, vici.
|
|
|
|
|
yeah i am able to identify my inputs my inputs are x,y and theta where x and y are the coordinate positions and theta is the deviation angle
|
|
|
|
|
i am implementing fuzzy logic for allignment of my robot drive so that it will drive smoothly i am implementing an IEEE research paper in which they have used it and that i am implementing .
|
|
|
|
|
Hi,
There are many people who would like to help you. But your question is very broad. What is the problem you are having.
Visit a tutorial to gain a better understanding of the fundamentals.
Live Support Software for Business
April
Comm100 - Leading Live Chat Software Provider
modified 27-May-14 8:41am.
|
|
|
|
|
i am implementing fuzzy logic for allignment of my robot drive so that it will drive smoothly i am implementing an IEEE research paper in which they have used it and that i am implementing .
|
|
|
|
|
Good day, I am from Turkey. MFC is in its start on. Can you help me I have a problem. I want to do a small project. Loaded a picture of my project using MFC. Then, a desired part will be drawn with the mouse. It will part the new area. Could you give me an example application.
Mail address : cemil.aksoyy@gmail.com
Example
http://s18.postimage.org/n0yyfmm2t/image.jpg
http://s12.postimage.org/fp0e6jjhl/image.jpg
|
|
|
|
|
Have a look at some of these articles[^] which will help you.
One of these days I'm going to think of a really clever signature.
|
|
|
|
|
here in this constructor :
CommissionEmployee(const string &, const string &,const string &, double=0.0);
why we are using reference & ? whats is the purpose of this ?
|
|
|
|
|
References are used to not have to do copy of the object passed to the constructor, in this case, strings.
If you did not used references, the string would have been copied at least 1 time too many.
Nihil obstat
|
|
|
|
|
|
References are basically pointers so this of this as an 'address', or a 'reference' to an object.
==============================
Nothing to say.
|
|
|
|
|
|
The purpose of & in constructor methods is the same it have in any other method: pass arguments by reference (instead of by value).
The usual reason is performance (avoid creating temporaries).
Veni, vidi, vici.
|
|
|
|
|
|
which is called pass by reference. we can pass arguments in two type
1. pass by value
2. pass by reference
if we use pass by reference same location is passed to functions. no copying is occured. so any changes made is also reflect in original variable. so use const for to provide unexpected changing.
|
|
|
|
|
|
A constructor is a class member function in C++ and C# that has the same name as the class itself.
The main purpose of the constructor is to initialize all member variables when an object of a said class is created. (Resources acquired such as memory or open files are typically released in the class destructor).
Constructor are automatically invoked when the object is created. Constructor doesn't have any return type, including return voids.
April
Comm100 - Leading Live Chat Software Provider
modified 27-May-14 8:39am.
|
|
|
|
|
i got this error message in my program :
1>Reservation.obj : error LNK2019: unresolved external symbol "public: class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > __thiscall Reservation::ID_sn(void)" (?ID_sn@Reservation@@QAE?AV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@XZ) referenced in function "public: class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > __thiscall Reservation::getReservationNumber(void)" (?getReservationNumber@Reservation@@QAE?AV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@XZ)
and this is the program it contain 2 header files and their cpp file plus the main file
Passenger . h
<pre>#ifndef PASSENGER_H //to avoid redefinition errors
#define PASSENGER_H
#include <iostream>
#include<string>
using namespace std;
class Passenger {
public:
Passenger();
Passenger(string,string,long);
void setPassengerName(string);
void setPassportNumber(string);
void setContactNumber(long);
string getPassengerName();
string getPassportNumber();
long getContactNumber();
void printDetails();
private:
string passengerName;
string passportNumber;
long contactNumber;
};
#endif
Passenger . cpp
<pre>#include <iostream>
#include "Passenger.h"
using namespace std;
Passenger::Passenger(string a="",string b="",long c=0)
{
setPassengerName(a);
setPassportNumber(b);
setContactNumber(c);
}
void Passenger::setPassengerName(string Pname)
{
passengerName=Pname;
}
void Passenger::setPassportNumber(string Pnum)
{
passportNumber=Pnum;
}
void Passenger::setContactNumber(long Cnum)
{
contactNumber=Cnum;
}
string Passenger::getPassengerName()
{
return passengerName;
}
string Passenger::getPassportNumber()
{
return passportNumber;
}
long Passenger::getContactNumber()
{
return contactNumber;
}
void Passenger::printDetails()
{
cout<<"passenger name: "<<getPassengerName()<<"\npassenger Passport Number: "<<getPassportNumber()<<
"\npassenger contact number: "<<getContactNumber()<<"\n\n";
}
Reservation . h
<pre>#ifndef RESERVATION_H_ //to avoid redefinition errors
#define RESERVATION_H_
#include <iostream>
#include <string>
#include "Passenger.h"
using namespace std;
class Reservation{
private:
static int sn;
const string ID;
bool smokerSeat;
Passenger passenger;
public:
Reservation(string psngrName, long psngrPhone, string psngrPassport, bool smoke);
Reservation(Passenger& psngr, bool smoke);
Passenger getPassenger();
bool isSmoker();
string getReservationNumber();
void printDetails();
string ID_sn();
};
#endif /*RESERVATION_H_*/
main .cpp
<pre>#include <iostream>
#include "Passenger.h"
#include "reservation.h"
int main()
{
Passenger passenger1("aar","k9",23596);
Passenger *passengerPtr=&passenger1;
passengerPtr->printDetails();
Reservation reservation("aarr",566,"t77",0);
Reservation *reservationPtr=&reservation;
reservationPtr->printDetails();
system("PAUSE");
}
Im a beginner in programming and that's problem make me really confused
** i think the problem in the Reservation.cpp
Because when i test the other file's it was working but after i added the implementation for the reservation header this problem was appeared
modified 14-Dec-12 7:41am.
|
|
|
|