[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Octave/C++
From: |
Søren Hauberg |
Subject: |
Re: Octave/C++ |
Date: |
Fri, 22 Jul 2005 11:52:44 +0200 |
User-agent: |
Mozilla Thunderbird 1.0.2 (X11/20050404) |
Hi,
I haven't looked at the code you provided a link to, but here goes...
From what I understand C++ robot interface basicly consist of a
"robot_link" object that you have to provide each to you want the robot
to act. I'd say the easiest thing to do is to create a new octave type
in C++ that contains a "robot_link" and then write wrapper functions to
the functions your students need to access.
A tutorial on how to write new types for Octave can be found at
http://wiki.octave.org/wiki.pl?CodaTypes
Hope this helps, if not write again. Your problem should be fairly easy
to solve, although it will require a bit of work.
/Søren
Mike Morley wrote:
Hi,
I see there's been some chatter about this recently, but I have another
question for the Octave/C++ gurus.
I'm currently working on a project that involves robotics in a
University teaching environment.
Students currently control the robot using a C++ program they write
themselves and a set of commands for which they have the header files.
(I've put the header files and an example program that tests the link
online at http://www.srcf.ucam.org/~mjm80/robot/)
What we would ideally like is a higher level way of controlling the
robot - ie, from Octave. Partly this would enable signal processing to
become much easier and thus easily extend the range of tasks we can
expect students to get their robots to perform.
As I understand it, I need to create the C++ wrappers for each of the
functions and then compile this into a .oct file in order to run it.
However: I'm not entirely sure how to do this - is it, for example,
possible to have a robot_link object that persists for the entire Octave
program? Would I be able to create a function that mimics rlink.command
(COMMAND_NAME, var) that takes COMMAND_NAME and var in as arguments, or
would I have to create a function for each specific command?
Any help/pointers would be greatly appreciated.
- Mike Morley
-------------------------------------------------------------
Octave is freely available under the terms of the GNU GPL.
Octave's home on the web: http://www.octave.org
How to fund new projects: http://www.octave.org/funding.html
Subscription information: http://www.octave.org/archive.html
-------------------------------------------------------------
-------------------------------------------------------------
Octave is freely available under the terms of the GNU GPL.
Octave's home on the web: http://www.octave.org
How to fund new projects: http://www.octave.org/funding.html
Subscription information: http://www.octave.org/archive.html
-------------------------------------------------------------
- Octave/C++, Mike Morley, 2005/07/22
- Re: Octave/C++,
Søren Hauberg <=
- Re: Octave/C++, Søren Hauberg, 2005/07/22
- Re: Octave/C++, Geraint Paul Bevan, 2005/07/22
- Re: Octave/C++, Mike Morley, 2005/07/22
- Re: Octave/C++, Søren Hauberg, 2005/07/22
- Re: Octave/C++, Geraint Paul Bevan, 2005/07/22