Glimpse- Visualizing attentional focus and atomspace

79 views
Skip to first unread message

Vishnu Priya

unread,
Mar 6, 2017, 4:05:27 AM3/6/17
to opencog
Hello all,

Currently i am stimulating atoms and trying "Glimpse" for visualization. 
I have started REST API, successfully connected to localhost:9000 and i am able to see Glimpse GUI. (i have also attached some pics).
But i don't know how to visualize my atomspace and Attentional Focus. 

Please provide me the steps to do so.

Thanks,
Vishnu
port 9000.png
GlimpseGUI.png
stimulation.png

Vishnu Priya

unread,
Mar 6, 2017, 4:30:46 AM3/6/17
to opencog


I also clicked on  "SlideMode" but nothing happend. 

Misgana Bayetta

unread,
Mar 6, 2017, 4:34:00 AM3/6/17
to opencog
Hi,  I don't think the command 'node index.js' is properly rendering the visualizer. Instead, type 'npm start' which should work according to the README. Next, you need to load the ECAN module by telneting to the cogserver first and then typing  loadmodule ./opencog/attention/libattention.so. While you are still the opencog shell, type  start-ecan to start the ECAN agents. After that, you can either directly stimulate atoms via (cog-stimulate ATOM) or insert atoms with AV values. Furthermore, look into this wiki page http://wiki.opencog.org/w/Hands_On_with_Attention_Allocation.

--
You received this message because you are subscribed to the Google Groups "opencog" group.
To unsubscribe from this group and stop receiving emails from it, send an email to opencog+unsubscribe@googlegroups.com.
To post to this group, send email to ope...@googlegroups.com.
Visit this group at https://groups.google.com/group/opencog.
To view this discussion on the web visit https://groups.google.com/d/msgid/opencog/59e12352-fd5b-45a9-bc1f-9026a4a8229d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
Belachew Misgana Bayetta
'For everyone who asks receives, and the one who seeks finds, and to the one who knocks it will be opened ' --Jesus
'The future belongs to those who believe in the beauty of their dreams' --Eleanor Rusvelt

Vishnu Priya

unread,
Mar 6, 2017, 4:50:30 AM3/6/17
to opencog



 Thanks for the quick reply Misgana. I have exactly done as what you said.  

npm start
load ...libattention.so..
start ecan


So what could be the problem?

glimpse.png
cogserver.png

Misgana Bayetta

unread,
Mar 6, 2017, 4:56:37 AM3/6/17
to opencog
I just checked it and it works for me. 

--
You received this message because you are subscribed to the Google Groups "opencog" group.
To unsubscribe from this group and stop receiving emails from it, send an email to opencog+unsubscribe@googlegroups.com.
To post to this group, send email to ope...@googlegroups.com.
Visit this group at https://groups.google.com/group/opencog.

For more options, visit https://groups.google.com/d/optout.

Misgana Bayetta

unread,
Mar 6, 2017, 4:59:05 AM3/6/17
to opencog
May be you have the wrong version of angular js.

Vishnu Priya

unread,
Mar 6, 2017, 4:59:51 AM3/6/17
to opencog

I forgot to tell you, when i run "npm test ", it throws an error. 

 
npmTest.png

Vishnu Priya

unread,
Mar 6, 2017, 5:28:43 AM3/6/17
to opencog
Which version of angular js should i have. Or how to check it?


On Monday, 6 March 2017 10:59:05 UTC+1, Misgana Bayetta wrote:
May be you have the wrong version of angular js.
On Mon, Mar 6, 2017 at 5:56 PM, Misgana Bayetta <misgana...@gmail.com> wrote:
I just checked it and it works for me. 
On Mon, Mar 6, 2017 at 5:50 PM, Vishnu Priya <vishnup...@gmail.com> wrote:



 Thanks for the quick reply Misgana. I have exactly done as what you said.  

npm start
load ...libattention.so..
start ecan


So what could be the problem?

--
You received this message because you are subscribed to the Google Groups "opencog" group.
To unsubscribe from this group and stop receiving emails from it, send an email to opencog+u...@googlegroups.com.

To post to this group, send email to ope...@googlegroups.com.
Visit this group at https://groups.google.com/group/opencog.
--
Belachew Misgana Bayetta
'For everyone who asks receives, and the one who seeks finds, and to the one who knocks it will be opened ' --Jesus
'The future belongs to those who believe in the beauty of their dreams' --Eleanor Rusvelt

Vishnu Priya

unread,
Mar 6, 2017, 6:35:09 PM3/6/17
to opencog


Older version of angular js worked for me. 
 In index.html, i made the following changes and it worked. 

<!--script type="application/javascript" src="libs/angular/angular.min.js"></script-->

Instead of localhost:5000, i tried connecting to localhost 17004, to visualize my atomspace. But it said "Error connecting to Server".

What do i miss here? 

Misgana Bayetta

unread,
Mar 6, 2017, 9:34:03 PM3/6/17
to opencog
You need to start the REST API and by default, it runs on port 500 I guess. Here is the wiki link on how to start  it http://wiki.opencog.org/w/REST_API

--
You received this message because you are subscribed to the Google Groups "opencog" group.
To unsubscribe from this group and stop receiving emails from it, send an email to opencog+unsubscribe@googlegroups.com.
To post to this group, send email to ope...@googlegroups.com.
Visit this group at https://groups.google.com/group/opencog.

For more options, visit https://groups.google.com/d/optout.

Misgana Bayetta

unread,
Mar 6, 2017, 9:35:27 PM3/6/17
to opencog
port 5000, not 500. Anyways, you don't have to change that.

Vishnu Priya

unread,
Mar 8, 2017, 2:02:30 AM3/8/17
to opencog


Yes Misgana. I got it working for the first few times. And afterwards,  it always said  "successfully fetched 0 atoms".  REST windows is running continuously showing status 200. But also sometimes rarely ends up in SIGPIPE error. 

Exception in thread Thread-1:
Traceback (most recent call last):
  File "/usr/lib/python2.7/threading.py", line 801, in __bootstrap_inner
    self.run()
  File "/usr/lib/python2.7/threading.py", line 754, in run
    self.__target(*self.__args, **self.__kwargs)
  File "/usr/local/lib/python2.7/dist-packages/web/api/restapi.py", line 45, in invoke
    self.api.run(host=IP_ADDRESS, port=PORT)
  File "/usr/local/lib/python2.7/dist-packages/web/api/apimain.py", line 74, in run
    self.app.run(debug=False, host=host, port=port)
  File "/usr/local/lib/python2.7/dist-packages/flask/app.py", line 843, in run
    run_simple(host, port, self, **options)
  File "/usr/local/lib/python2.7/dist-packages/werkzeug/serving.py", line 694, in run_simple
    inner()
  File "/usr/local/lib/python2.7/dist-packages/werkzeug/serving.py", line 659, in inner
    srv.serve_forever()
  File "/usr/local/lib/python2.7/dist-packages/werkzeug/serving.py", line 499, in serve_forever
    HTTPServer.serve_forever(self)
  File "/usr/lib/python2.7/SocketServer.py", line 233, in serve_forever
    self._handle_request_noblock()
  File "/usr/lib/python2.7/SocketServer.py", line 292, in _handle_request_noblock
    self.handle_error(request, client_address)
  File "/usr/lib/python2.7/SocketServer.py", line 290, in _handle_request_noblock
    self.process_request(request, client_address)
  File "/usr/lib/python2.7/SocketServer.py", line 318, in process_request
    self.finish_request(request, client_address)
  File "/usr/lib/python2.7/SocketServer.py", line 331, in finish_request
    self.RequestHandlerClass(request, client_address, self)
  File "/usr/lib/python2.7/SocketServer.py", line 654, in __init__
    self.finish()
  File "/usr/lib/python2.7/SocketServer.py", line 713, in finish
    self.wfile.close()
  File "/usr/lib/python2.7/socket.py", line 283, in close
    self.flush()
  File "/usr/lib/python2.7/socket.py", line 307, in flush
    self._sock.sendall(view[write_offset:write_offset+buffer_size])
error: [Errno 32] Broken pipe

When i made a curl request,  curl 'http://localhost:5000/api/v1.1/atoms?type=ConceptNode',  before creating atoms, it also returns something. This seems fishy. ???
i expect that to be empty.  

I just did the following steps in this order:

1. Start npm
2. telnet and connect to cogserver (17004)
3. start REST
4. in the cogserver, create some atoms
5. goto localhost 9000 and connect to 5000

I have attached the pics for your reference.


Many Thanks,
Vishnu
curlResponse.png
RESTWindow.png
Reply all
Reply to author
Forward
0 new messages