#linuxcnc-devel | Logs for 2014-05-05

Back
[08:14:35] <cradek> psha: what are your thoughts about merging camview so it gets distributed with the rest of linuxcnc?
[08:27:28] <skunkworks> another thing I would like to take advantage of...
[08:30:27] <skunkworks> so many projects
[08:43:57] <psha> cradek: depends on degree of merging :)
[08:44:11] <psha> packages in linuxcnc deb repository - fine
[09:01:04] <psha> disconnectged
[09:01:12] <psha> cradek: depends on level of merging
[09:01:38] <psha> camunits packages in linuxcnc deb repository looks good for me
[09:01:45] <psha> also there are python binding
[09:01:45] <psha> s
[09:01:53] <psha> and small camview-emc shim on top of that
[09:40:33] <psha> afk
[10:18:50] <CaptHindsight> even fixing the howto for installing camview would even help lots of people trying to use it
[11:08:21] <cradek> I'm all ears
[11:24:36] <Connor> psha: *I* Found it hard to get camview-emu working... and had difficulty with getting the DRO to show up correctly because of missing plugins.. I need to go back and look, but I think I got it showing.. but, the DRO not reading anything.. always stays the same.
[13:19:05] <CaptHindsight> I just tried to install camview in a new precise install and the howto gets you as far as installing the repo and the camview package
[13:20:05] <CaptHindsight> there isn't any clear info on howto modify AXIS to add the tab, we have had this running but it takes some trial and error
[13:21:09] <CaptHindsight> http://psha.org.ru/debian/README.html this works fine
[13:21:28] <CaptHindsight> then jumping back to http://psha.org.ru/b/camview-emc.html
[13:22:45] <CaptHindsight> but howto modify the settings for axis?
[13:24:24] <CaptHindsight> http://wiki.linuxcnc.org/cgi-bin/wiki.pl?Axis_Embed_Video this mentions "Axisrc code Download this file and place code from it in your .axisrc upload:axisrc-dynamic-tabs"
[13:25:07] <CaptHindsight> what version of Linuxcnc has a .axisrc ?
[13:25:56] <CaptHindsight> http://wiki.linuxcnc.org/uploads/axisrc-dynamic-tabs
[13:26:32] <psha> CaptHindsight: any
[13:26:39] <psha> i thing from 2.4
[13:27:09] <psha> as i remember for 2.5 you don't need .axisrc
[13:29:04] <CaptHindsight> psha: so for 2.5 you just need to modify the .ini, is that correct?
[13:29:36] <CaptHindsight> and for 2.4 you have to create the .axisrc file yourself?
[13:30:44] <CaptHindsight> when we modify the .ini file in 2.5 we get lots of Python syntax errors
[13:34:20] <CaptHindsight> http://wiki.linuxcnc.org/cgi-bin/wiki.pl?Axis_Embed_Video this wiki page has ' Then add following lines to INI file:
[13:34:21] <CaptHindsight> EMBED_TAB_NAME = Camera EMBED_TAB_COMMAND = camview-emc -w {XID}" we just get errors
[13:36:46] <CaptHindsight> we managed to get the live video in an AXIS tab (by modifying the .ini but not as written) but that is as far as we got
[13:37:38] <psha> yep, correct
[13:37:38] <CaptHindsight> it might be that the Python binding needs to be fixed
[13:37:46] <psha> in 2.5 needed functionality was merged into axis
[13:38:40] <CaptHindsight> do you have a good set of changes or steps to modify the .ini?
[13:39:07] <psha> hm, as i remember all you need is two lines - embed_tab_name and embed_tab_command
[13:39:22] <psha> {XID} is replaced by window id
[13:39:56] <psha> you may try something like xterm first
[13:40:00] <psha> xterm -into {XID}
[13:40:05] <psha> instead of camview
[13:40:06] <CaptHindsight> we saw how to name the TAB, but the plugins never works for us
[13:41:31] <cradek> if this is only a documentation problem I'd be tickled to apply a doc patch from any of you brave folks
[13:41:43] <CaptHindsight> if we can write up a new clean howto I'll work on extending the image processing for feature, edge, enhancement etc etc
[13:42:47] <CaptHindsight> cradek: great, lets see if that is all it is
[13:45:34] <psha> so
[13:45:44] <psha> i've added two (2) lines to sim.ini
[13:45:59] <psha> EMBED_TAB_NAME=Test
[13:45:59] <psha> EMBED_TAB_COMMAND=xterm -into {XID}
[13:46:03] <psha> axis.ini
[13:46:10] <psha> and i've got tab with xterm
[13:46:19] <psha> so that part of documentation is correct
[13:48:30] <CaptHindsight> ok, trying that here....
[13:50:34] <psha> added camview-emc -w {XID}
[13:50:38] <psha> and yay! there is camera
[13:53:41] <CaptHindsight_> replacing camview-emc with xterm just opened up xterm within linuxcnc....
[13:54:27] <CaptHindsight_> what are we missing?
[13:55:02] <psha> nothing
[13:55:10] <psha> for me everything is working fine
[13:55:13] <psha> according to howto
[13:55:18] <CaptHindsight_> when i had camview-emc instead of xterm, i got this error in the terminal: No input plugins found
[13:55:24] <psha> unfortunately scrot is refusing to make screenshots )
[13:55:35] <psha> you have no camera attached
[13:55:42] <psha> run it from commandline
[13:55:44] <psha> camview-emc
[13:56:16] <psha> sudo modprobe vivi
[13:57:26] <CaptHindsight_> under the [DISPLAY] section: EMBED_TAB_NAME = Camera
[13:57:26] <CaptHindsight_> EMBED_TAB_COMMAND = camview-emc -w {XID}
[13:57:31] <CaptHindsight_> that works fine
[14:06:13] <CaptHindsight_> now to figure out what controls work and why others don't
[14:06:43] <CaptHindsight_> ok so we just fix the howto a bit and it gets someone from a fresh install to live video in a tab
[14:08:41] <CaptHindsight_> it doesn't seem to like any mode other than 640x480 rbg 24bpp so far
[14:10:35] <CaptHindsight_> crosshair color and XOR work fine and adding a circle and changing its radius!
[14:12:05] <CaptHindsight_> do you have to restart Linuxcnc every time there is an error in camview to clear it?
[14:12:26] <CaptHindsight_> there are probably all camview issues
[14:18:48] <psha> yep
[14:19:06] <psha> it's better to start camview without linuxcnc
[14:19:13] <psha> to create proper chain config
[14:19:28] <psha> you need linuxcnc only for halio module
[14:20:11] <CaptHindsight> for most of my apps I'd want camview in it's own window anyway
[14:20:52] <CaptHindsight> how do you get the DRO XOR with the video working?
[14:22:03] <CaptHindsight> overlaying the simulation with the live video is another app
[14:22:19] <psha> DRO from linuxcnc?
[14:22:24] <psha> you need halio plugin
[14:22:33] <CaptHindsight> ah ok
[14:23:41] <psha> i don't think it's in the repository
[14:23:52] <CaptHindsight> halio camunits plugin
[14:24:48] <CaptHindsight> ok we can add that step to the howto as well, once we know
[14:27:56] <psha> ah, it's in repo
[14:28:09] <psha> camunits-plugins-emc
[14:29:56] <CaptHindsight_> so it's in the deb http://psha.org.ru/debian/ NAME-OF-YOUR-DISTRIBUTION contrib
[14:30:23] <CaptHindsight_> or deb http://psha.org.ru/debian/ precise contrib in my situation
[14:33:32] <psha> yep
[14:35:43] <CaptHindsight_> i dont see halio in here: http://psha.org.ru/debian/dists/precise/contrib/binary-i386/Packages
[14:36:00] <CaptHindsight_> are you sure its in the repo? i did a search in aptitude for halio and i couldnt find it
[14:37:40] <psha> camunits-plugins-emc
[14:37:53] <psha> i bet it's mentioned in docs
[14:38:54] <CaptHindsight_> i dont have camunits-plugins-emc... i have camunits-plugins-emc-misc
[14:39:24] <CaptHindsight_> the -misc package is already installed
[14:40:31] <CaptHindsight_> camunits-plugins-emc seems to be included in lucid repo but not precise
[14:46:07] <CaptHindsight> so it looks like we need to package camunits-plugins-emc for precise
[14:46:37] <CaptHindsight> this is looking good!
[14:51:08] <psha> bb
[14:51:09] <psha> night here
[15:24:35] <CaptHindsight> now we'll have to see if camunits-plugins-emc has been modified or not before packaging
[22:02:33] <skunkworks_> heh http://www.machsupport.com/forum/index.php/topic,27119.msg191616.html#msg191616
[22:02:52] <skunkworks_> and hey - I wrote that! http://wiki.linuxcnc.org/cgi-bin/wiki.pl?Oword#Sample_1_One_side_of_a_ball_in_cage
[22:06:32] <skunkworks_> I thought mach4 could do conditionals now - maybe not do / while loops..
[22:23:50] <CaptHindsight> skunkworks_: I'm not so sure about keeping camunits going
[22:24:11] <CaptHindsight> it really hasn't been touched in 3-4 years except for psha
[22:24:26] <CaptHindsight> and the extras use old libs
[22:28:28] <CaptHindsight> I'll explore further over the next few days