smach_viewer error

asked 2019-05-21 03:49:19 -0500

Orl gravatar image

updated 2019-05-21 04:13:54 -0500

gvdhoorn gravatar image

So I don't always get this error when I run smach_viewer but it occurs about 50% of the time I run it. Is it a bug with smach_viewer or perhaps my code?

Error output

wxversion 2.8 is not installed, installed versions are ['3.0-gtk2']
wxversion 2.8 is not installed, installed versions are ['3.0-gtk2']

(smach_viewer.py:4688): Gtk-WARNING **: gtk_disable_setlocale() must be called before gtk_init()
ERROR PARSING DOT CODE Error: trouble in init_rank
    %0 1
    %0 1
    %0 2
    %0 2
    %0 2
    %0 13
    %0 2
    %0 13
    %0 12
    %0 12
    %0 1
    %0 2
    /RMS/Auto_Mode/Auto_Mode_Services/Service_Diet:succeeded 1
    /RMS/Auto_Mode/Auto_Mode_Services/Service_Activity_Emotion:preempted 5
    /RMS/Auto_Mode/Auto_Mode_Services/Service_Activity_Emotion:aborted 1
    /RMS/Auto_Mode/Auto_Mode_Services/Service_Activity_Emotion:succeeded 2
    %0 1
    %0 2
    /RMS/Auto_Mode/Auto_Mode_Services/Service_Activity_Emotion/Stop_Service_Activity_Emotion 1
    %0 2
    %0 1
    %0 2
    /RMS/Auto_Mode/Auto_Mode_Services/Service_Activity_Emotion/Monitor_Stop_Service_Activity_Emotion 1
    %0 2
    %0 1
    %0 2
    /RMS/Auto_Mode/Auto_Mode_Services/Service_Activity_Emotion/Start_Service_Activity_Emotion 1
    %0 2
    %0 1
    %0 2
    /RMS/Auto_Mode/Auto_Mode_Services/Service_Activity_Emotion/Nav_Goal 2
    %0 2
    /RMS/Auto_Mode/Auto_Mode_Services/Service_Activity_Emotion/__proxy__ 2
    %0 1
    %0 1
    %0 1
    %0 1
    %0 1
    %0 1
    %0 1
    %0 1
    %0 1
    __empty__ 3
Warning: /RMS/Auto_Mode/Auto_Mode_Services/Monitor_Close_Goal -> /RMS/Auto_Mode/Auto_Mode_Services/Service_Activity_Emotion/__proxy__: head not inside head cluster cluster_/RMS/Auto_Mode/Auto_Mode_Services/Service_Activity_Emotion

What happens next? The smach_viewer window, which still shows the state machine, fades into a grayish color and an empty dot_viewer window pops up.

image description

edit retag flag offensive close merge delete

Comments

I have the same issue. I have tested all of my state transitions and it all checks out. I can't find any error in my code other than a python warning about expecting a list instead of a Dict in my concurrent state declaration. I am suspicious it is related to the concurrent state and possibly the outcome map or default transition.

Do you have a concurrent state in your smach state machine?

Did you ever resolve this issue?

Cheers Alex

yelkcub gravatar image yelkcub  ( 2020-09-24 06:56:34 -0500 )edit