Revision 31be19a6
ID | 31be19a6f1dbf2140fc23d0e97e1a5a706cb78b8 |
Behaviours now have names!
scout/libscout/src/BehaviorProcess.cpp | ||
---|---|---|
39 | 39 |
{ |
40 | 40 |
string scoutname = ""; |
41 | 41 |
int behavior_num; |
42 |
string behavior_name = ""; |
|
42 | 43 |
|
43 | 44 |
// Running with no arguments only supports one scout. Check in case |
44 | 45 |
// the user meant to specify a scout in the arguments. |
45 |
if (argc != 3)
|
|
46 |
if (argc != 4)
|
|
46 | 47 |
{ |
47 | 48 |
cout << "You have started this behavior in hardware mode." << endl |
48 | 49 |
<< "To start in software mode, use: " << argv[0] |
... | ... | |
53 | 54 |
// Use the provided scoutname for simulator messages |
54 | 55 |
scoutname = argv[1]; |
55 | 56 |
behavior_num = atoi(argv[2]); |
57 |
behavior_name = argv[3]; |
|
56 | 58 |
|
57 |
ros::init(argc, argv, "priya_behavior");
|
|
59 |
ros::init(argc, argv, behavior_name);
|
|
58 | 60 |
|
59 | 61 |
BehaviorList* list = new BehaviorList(scoutname); |
60 | 62 |
vector<Behavior*> behavior_list = list->behavior_list; |
Also available in: Unified diff