nl: retrieve a default instance of lcm using either the environment variable lcm_default_url or the default . if an exception occurs , system.exit -1 is called . concode_field_sep LCM singleton concode_elem_sep String regex concode_elem_sep Pattern pat concode_elem_sep LCMDataOutputStream encodeBuffer concode_elem_sep ArrayList<SubscriptionRecord> subscriptions concode_elem_sep LCMSubscriber lcsub concode_elem_sep HashMap<String,ArrayList<SubscriptionRecord>> subscriptionsMap concode_elem_sep boolean closed concode_elem_sep ArrayList<Provider> providers concode_field_sep void receiveMessage concode_elem_sep void subscribe concode_elem_sep void unsubscribe concode_elem_sep int getNumSubscriptions concode_elem_sep void publish concode_elem_sep void publish concode_elem_sep void publish concode_elem_sep void messageReceived concode_elem_sep void main concode_elem_sep void close concode_elem_sep void subscribeAll
code: LCM function ( ) { if ( singleton == null ) { try { singleton = new LCM ( ) ; } catch ( Exception loc0 ) { System . err . println ( "srini_string" + loc0 ) ; System . exit ( - 1 ) ; return null ; } } return singleton ; }