Hello All,
I'm trying out Nixie and I have questions.
1. I'm running Nixie MRL in Ubuntu 18.04, do I have to type in "java -jar myrobotlab.jar" to launch MRL every single time? I find that I have saved configs but everytime I launch it in the above way.....the configs are being reset and I have to set it again and again...., is there something I'm doing wrong to relaunch MRL?
2. I followed the instructions for the web gui, clicked on the controller icon, set the controller board type to atmega2560 , port to /dev/tty/ACM1 and rate at 115200, I clicked on connect and I can see the circle has turned from red to Green...., and when I click on head activated, slided to on > settings > I set the controller to io1.left > attached pin 12 (for the neck)> slided to enable > went to limits tab, confused here.....I tried to slide the black triangle symbol back and forth and the neck ....does not move....... and I tried to click on "detach" on the controller tab......, it does not seem to detach , because it should change to attach....but nothing happens....frustrated here....,
Please advice,
Thanks
Hello Roger2, 1. you can
Hello Roger2,
1. you can make a bash script - not sure what configs you are referring to ...
If your trying out the latest nixie - the configs will be in the user's data directory ...
data/config
2. Can you give a link to the instructions you are following ?
my issue with Nixie
Hello Grog,
I followed this link: http://inmoov.fr/inmoov2-in-nixie/
step by step ,
I ran java -jar myrobotlab.jar and it seems to load in the web browser, installed All the services , restarted it and selected InMoov from the page
it launches, and then when I select say head and then rothead , attached arduino (ttyACM0), enabled it , selected pin 13, ..., selected the limits tab and slided it back and forth...., my rothead does not move at all.. ttyACM0 is fine I think because I can upload the whole Mrlcomm.ino sketch to it with no issues, ....,
please advice on what I'm doing wrong?
The environment I'm using is Ubuntu 18.04 on a Jetson nano board with Java 11 jre installed.
After you found that it
After you found that it wasn't working as expected did you send a NoWorky?
Yes I did
Yes I did send a no worky,
I will send it again in 15minutes so that way you know it's from me,
and my user id is Roger2
I'm sending the No worky now and its taking very long (it is stuck on sending.....is that normal?
or is there location of where the log file is? I will just paste the errors here..,
same directory as the
same directory as the myrobotlab.jar
its called myrobotlab.log
errors extracted
HI Grog,
below are the errors that I have extracted out of the log that occurred when I was trying to move the neck,
hope you can let me know in what I'm not doing right in NIxie..,
can you email me the whole
can you email me the whole log,
send it to grog@myrobotlab.org
ok thanks I had just emailed
ok thanks I had just emailed you the whole log file,
got it thanks... yeah ... on
got it thanks...
yeah ... on the "good side" - there are no errors, and it sees your /dev/ttyACM0 port
heh, the encoding is correct too (working through that problem with someone else)
mostly it looks good, except the actual communication to/from the Arduino
In these cases it's worth updating from the MrlComm packaged with the release.
And this can be messed if you put a different version jar is a pre-existing myrobotlab directory.
Please do the following:
cd /opt/myrobotlab/549
java -jar myrobotlab.jar --install # should be relatively quick
then use Arduino 1.8.x IDE to install
/opt/myrobotlab/549/resource/Arduino/MrlComm
to your board
Make sure no errors are returned in the output from the compile & load of the Arduino IDE
this process should guarantee you have the correct matching MrlComm sketch on your board
thanks, phew ...I thought
thanks, phew ...I thought there was many errors...,
Really makes sense to me because I left the old sketch from my other MRL version in my left arduino board,
and now following your advice installing myrobolab.jar inside /opt, (looks like it is installing everything...) and
question is , every time I start myrobotlab , do I have to run this java -jar myrobotlab.jar in the terminal? or is there a .bat file like how it is run in windows? .sh or something?
So I tried your suggestions and it didnt work still (upload sketch failed in ubuntu Arduino IDE), ......., still not commuicating after I had upload the latest MRL Nixie MrlComm.ino sketch to my left arduino (using windows Arduino IDE), I had sent you an email and also attached my latest log file,
not sure what I'm doing wrong now?
# a Linux shell script to
# a Linux shell script to start mrl - run the following commands
cd /opt/myrobotlab/549
echo "gnome-terminal -- java -jar myrobotlab.jar" > start.sh
chmod +x ./start.sh
These commands will produce a executable bash script which you can double click
The log you sent me shows you doing the "install services" .. that is it ..
Its extremely important that when "install services" finishes - you restart myrobotlab
so if at this point you have restarted, try setting up a servo - and if it fails send me the log
also I've tested the send noWorky and its worky for me ...
I couldnt get the start.sh
I couldnt get the start.sh going following your command - echo "gnome-terminal -- java -jar myrobotlab.jar" > start.sh
message came back below in terminal:
bash: start.sh: Permission denied
I even tried placing sudo infront of it as well, it didnt work... same message as above...
But on the other hand I have some good news, I'm able to upload the sketch now to my left arduino , good sign and also can move the neck and rothead now, so glad for that ....was able to move them with the slider bar in the web (limit tab)...., finally working thank you very much for your help! so now my issue is just I need to start MRL Nixie through your way (.sh) and not java -jar myrobotlab.jar....., ...........please advice
well that's good news ... as
well that's good news ...
as for the script i suspect you didn't follow my directions
I'm guessing you forgot the chmod +x ./start.sh command
cd /opt/myrobotlab/549
echo "gnome-terminal -- java -jar myrobotlab.jar" > start.sh
chmod +x ./start.sh
are those 2 commands together
are those 2 commands together one line ? or separate 2 lines for each?
I actually done that but one by one (chmod command I did it on the second line in terminal)..., forgot to mention,
here is inside the terminal below:
ah ... ok /opt is a nice
ah ... ok
/opt is a nice place to install stuff - but at the moment the permissions are only for root
So as you see the first command fails, and if that fails the second one won't work either..
So take control of opt !
run this
sudo chown -R $USER /opt
It means "I want to own everything in opt, so I don't need to sudo again"
Then run the other two commands.
I guess your pretty new to Linux ?
Great ... good to learn new stuff.
This could also perhaps explain the issue you've been having with serial ports...
Linux is pretty picky on who has rights to what - the way it operates is a bit different from windows
ok cool, I took control of
ok cool, I took control of /opt as you adviced and it created the start.sh file and made is executable successfully, yea permissions are so different to windows, I thought sudo and chmod would do the trick but require further steps to make owner of a directory, thank you, yes I'm learning linux as I go (taking courses as well but I think by learning is by diving in ..... and get experience which I really want to get NIxie MRL working on my jetson nano) ,
1. so now I'm up to in the file explorer ........, when I double click on start.sh , it just opens in vim automatically ....even though I went into the start.sh 's properties and checked the > permissions tab > checked allow executing the file as program > but when I double click on start.sh, it opens up vim in terminal , please advice? (I already done the chmod +x start.sh)
2. so for the meanwhile, waiting for your reply - I just ran command ./start.sh and it started MRL ....
(things start to work like the mouth (which I had swiped activated to ON, i chose Poppy and it can speak
and the issue I'm having is with "save config", I clicked on the save config button for the mouth to be Poppy,
this info came below:
i01.mouth : : saved i01.mouth config to data/config/default/i01.mouth.yml
I then shut off MRL , ...and then relaunch with typing in ./start.sh ,
And I had to manually click on the finger print to access and begin InMoov , so what I'm seeing here is that the body parts that I activated (eg: the mouth) does not load automatically.....
So second thing I tried, is going into runtime > under configurations > I click on save config as myconfig
I shut of MRL and then restart by ./start.sh > in runtime, I chose myconfig and click on start, ........, it started the various parts I saved (the ear, mouth and brain but all not "activated" - which I did save them to be activated and chosen poppy for the mouth, none of those are loaded....) .......
i get this error as well:
i01.chatbot:: could not invoke i01.chatBot.onTest([Ljava.lang.Object;@82c3f36
On this website http://inmoov.fr/inmoov2-in-nixie/ it shows you how to install, configure and save configs by the save config button ........, are there instructions on how to operate MRL afterwards? because it seems that things that I had saved into config dont load up automatically during start
please advice
3. I have problem with the ear, I activated it and clicked on "open" > under listening is True but the Microphone icon there has a red cross on it , when I click on it , the cross goes away for 2 seconds (so it couldnt listen) and the cross appears on top of the mic icon again, (Recording goes back to false), .....
and this error occurs below:
i01.chaBot :: invalid bot path - a bot must be a directory with a subdirectory named "aiml"
please advice
I had just also sent a noWorky just now (and success noWork sent)
1. so now I'm up to in the
1. so now I'm up to in the file explorer ........, when I double click on start.sh , it just opens in vim automatically ....even though I went into the start.sh 's properties and checked the > permissions tab > checked allow executing the file as program > but when I double click on start.sh, it opens up vim in terminal , please advice? (I already done the chmod +x start.sh)
The chmod+x start.sh should have made it executable.
You can open your script and put
#!/bin/bash
as the first line.
The second line should be what I put in the echo, which should be
gnome-terminal -- java -jar myrobotlab.jar
the gnome-terminal -- means ... start a gnome terminal with no special arguments ... the rest "java -jar myrobotlab.jar" means execute that command in the shell.
By design I wanted to make sure a terminal shell was started before executing "java -jar myrobotlab.jar"
Why ?
Because the terminal gives you alot more control and information than just "silently" running in the background - which I guess was your goal ?
The terminal lets you access the command line interpreter in myrobotlab.
(I guess I should do a demo on this sometime)
if you don't want the terminal coming up then get rid of the "gnome-terminal --" part
Does it actually start vim ? or is it just a terminal ?
xxx
2. so for the meanwhile, waiting for your reply - I just ran command ./start.sh and it started MRL ....
(things start to work like the mouth (which I had swiped activated to ON, i chose Poppy and it can speak
and the issue I'm having is with "save config", I clicked on the save config button for the mouth to be Poppy,
this info came below:
i01.mouth : : saved i01.mouth config to data/config/default/i01.mouth.yml
I then shut off MRL , ...and then relaunch with typing in ./start.sh ,
And I had to manually click on the finger print to access and begin InMoov , so what I'm seeing here is that the body parts that I activated (eg: the mouth) does not load automatically.....
So second thing I tried, is going into runtime > under configurations > I click on save config as myconfig
I shut of MRL and then restart by ./start.sh > in runtime, I chose myconfig and click on start, ........, it started the various parts I saved (the ear, mouth and brain but all not "activated" - which I did save them to be activated and chosen poppy for the mouth, none of those are loaded....) .......
i get this error as well:
i01.chatbot:: could not invoke i01.chatBot.onTest([Ljava.lang.Object;@82c3f36
On this website http://inmoov.fr/inmoov2-in-nixie/ it shows you how to install, configure and save configs by the save config button ........, are there instructions on how to operate MRL afterwards? because it seems that things that I had saved into config dont load up automatically during start
please advice
if you don't like typing you can hit up arrow for your last command
or start type ./st (then hit tab and it will auto-complete)
I started mouth, changed to poppy, then saved config.
Restarting I loaded started the config and Poppy came back ready to run
The thing that didn't work is "InMoov's awareness the mouth was working"
Looking back at InMoov panel, and it doesn't realize the mouth is running and the Poppy voice is selected.
its on the list to be fixed
https://github.com/MyRobotLab/myrobotlab/issues/915
3. I think the Chrome that is distributed for arm builds is borked, and will require google to fix it until we come up with a better solution - or you can use a browser on a different machine.
#!/bin/bashI tried this in
#!/bin/bash
I tried this in the first line of the start.sh , it didnt work....,
1:
Because the terminal gives you alot more control and information than just "silently" running in the background - which I guess was your goal ?
Yes it gives me more control and visibility in the background.
Does it actually start vim ? or is it just a terminal ?
it started in Vim in a terminal, please see below
Please advice
2:
Restarting I loaded started the config and Poppy came back ready to run
how did you do this? guessing is it after start.sh launched, go in web browser as below > go to runtime > under configurations > choose my config > click start? (every time though?)
Yes , the mouth Poppy did save,
actually what I was trying to say is that chatbot is not "activated" when I saved Chatbot to be activated.... in myconfig ,
I also checked in /opt/myrobotlab/549/InMoov/config/service_A_Chatbot.config.default
;----------------------------- CHATBOT CONFIG ----------------------------------------
Chatbot Activated is set to True , so it seems no matter what config I start (either default or myconfig),
Chatbot does "not activate" by itself which activate has been saved in both default and myconfig...,
Please advice
Heh, So starting vim is not
Heh,
So starting vim is not useful .. but that is the amazing and wonderful thing about Linux, you can configure it to do anything you want (given enough time and patience)
You will start finding deficiences in the InMoov2 service ...
I need Gael's input and possibly kwatters to help resolve details on requirements of functionality.
FYI - any config marked as service_A_Chatbot.config.default
and .ini & .default will be less and less...
this is where I am interested in resolving issues - outside of that .. my interest wanes significantly ...
Hi Grog, Yea I noticed that
Hi Grog,
Yea I noticed that InMoov2 uses yamls as I found (myconfig) inside a data folder and with yml files inside.
I would say it is different in how it was before with Manticore.
Do you have all the parameters I could set and test in yaml then?
Ok I understood that InMoov 2 is still under development, appreciate you, Gael and Kwatter's work, it is very awesome!