Tree output format

26 lượt xem
Chuyển tới thư đầu tiên chưa đọc

headmyshoulder

chưa đọc,
07:31:33 16 thg 2, 201316/2/13
đến openbeag...@googlegroups.com
Hi,

I am quite new to OpenBeagle and really like it. I wonder if there is the possibility to write the tree into different formats (like LaTeX, plain C, or even graphviz). Any hints?

Regards,

Karsten

Christian Gagné

chưa đọc,
15:35:58 16 thg 2, 201316/2/13
đến openbeag...@googlegroups.com
Hi Karsten,

GP trees can currently be written into XML, through the GP::Tree::write() (serialize()) methods. However, I know that some in the past did some hack to write trees into plain C code or LISP. That's relatively simple to do, you to code a new method that will write the trees in the desired format, and call the function on its children recursively. You can check the code of the function GP::Tree::write() to see how to write it. Then, the intricacies will come from the format you want to use as output, but it should be quite straighforward.

Another possibility is to take the XML output of a GP tree and convert it in an external script in the format you would like.

Best,

Christian
> --
>
> ---
> You received this message because you are subscribed to the Google Groups "openbeagle-users" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to openbeagle-use...@googlegroups.com.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>

--
Christian Gagné
http://vision.gel.ulaval.ca/~cgagne



Karsten Ahnert

chưa đọc,
05:04:28 18 thg 2, 201318/2/13
đến openbeag...@googlegroups.com
On 02/16/2013 09:35 PM, Christian Gagn� wrote:
> Hi Karsten,
>
> GP trees can currently be written into XML, through the GP::Tree::write() (serialize()) methods. However, I know that some in the past did some hack to write trees into plain C code or LISP. That's relatively simple to do, you to code a new method that will write the trees in the desired format, and call the function on its children recursively. You can check the code of the function GP::Tree::write() to see how to write it. Then, the intricacies will come from the format you want to use as output, but it should be quite straighforward.

ok, I think I can manage to implement this.

Btw. is there a place like a separate repository where one can put such
additions to OpenBeagle?

Best regards,

Karsten

Christian Gagné

chưa đọc,
06:56:32 18 thg 2, 201318/2/13
đến openbeag...@googlegroups.com
Hi,

For such a contribution, the way we are proceeding usually is that you send me your code be e-mail, and I will look for integrating it in the library with the next version.

Best,

Christian



On 2013-02-18, at 5:04 AM, Karsten Ahnert <karsten...@googlemail.com> wrote:

William Rowan Hamilton

chưa đọc,
10:42:01 28 thg 8, 201428/8/14
đến openbeag...@googlegroups.com
Hello,

That could be a "real nice to have". That is plan for Open Beagle 4?

Thanks

William

Christian Gagné

chưa đọc,
10:47:38 28 thg 8, 201428/8/14
đến openbeag...@googlegroups.com
Hi William,

Well, two issues on this:
- I am so swampped with my professor job (which I really like, tough) and I'm trying to preserve my familly time such that I don't see when there will be stable release of Open BEAGLE 4 in the short/mid sight.
- Karsten hasn't submitted me anything on his/her code since the message such that it will not make its way to the library.

Best,

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

William Rowan Hamilton

chưa đọc,
11:18:21 28 thg 8, 201428/8/14
đến openbeag...@googlegroups.com
Hi Christian,

I understand we are very busy for work.
I am just asking a news about this topic, that wasn't a request.

Good luck for the "nexts"

Best Regards

William
Trả lời tất cả
Trả lời tác giả
Chuyển tiếp
0 tin nhắn mới