DefaultStateContext(MachineContext *context):context(context) { printf("Entered Default State\n"); }
~DefaultStateContext() { printf("Left Default State\n"); }
- Smach::event_result event1_handler(const Smach::event& x)
+ Smach::event_result event1_handler(const Smach::event& x __attribute__ ((unused)))
{
printf("DEFAULT STATE: Received Event 1\n");
return Smach::RESULT_ACCEPT;
State1Context(MachineContext *context):context(context) { printf("Entered State 1\n"); }
~State1Context() { printf("Left State 1\n"); }
- Smach::event_result event1_handler(const Smach::event& x)
+ Smach::event_result event1_handler(const Smach::event& x __attribute__ ((unused)))
{
printf("STATE1: Received Event 1\n");
return Smach::RESULT_OK;
State2Context(MachineContext *context):context(context) { printf("Entered State 2\n"); }
~State2Context() { printf("Left State 2\n"); }
- Smach::event_result event1_handler(const Smach::event& x)
+ Smach::event_result event1_handler(const Smach::event& x __attribute__ ((unused)))
{
printf("STATE2: Received Event 1\n");
return Smach::RESULT_OK;
}
- Smach::event_result event2_handler(const Smach::event& x)
+ Smach::event_result event2_handler(const Smach::event& x __attribute__ ((unused)))
{
printf("STATE2: Received Event 2\n");
return Smach::RESULT_OK;
}
- Smach::event_result event3_handler(const Smach::event& x)
+ Smach::event_result event3_handler(const Smach::event& x __attribute__ ((unused)))
{
printf("STATE2: Received Event 3\n");
return Smach::RESULT_OK;
} state_2;
Smach::event_result
-State1Context::event3_handler(const Smach::event& x)
+State1Context::event3_handler(const Smach::event& x __attribute__ ((unused)))
{
printf("STATE1: Received Event 3, throwing state to change to...\n");