Preparing Rob01Ex1_2009 plugin

22 views
Skip to first unread message

Anders Bøgild - Robo[LAB]

unread,
Nov 13, 2009, 4:46:09 AM11/13/09
to RobWork
Hello Rob01'ers

I have some small changes to the README.txt i the root of the
Rob01Ex1_2009 folder. Here is the revised version:

This all applies to MinGW on Win32

To prepare this project
=======================

This project should be placed like this relative to RobWork and
RobWorkStudio (unless you want to edit CMakeLists.txt):

RobWork
RobWorkStudio
RobWorkApp
ClassProjects
Rob01Ex1_2009


Goto the Rob01Ex1_2009 folder and do the folowing:
(if you are using the RobWork distribution from www.robwork.dk, do the
folowing from the 'console' or 'prompt' found in RobWork start menu
entry created by the installer)

cd build\release
cmake -G "Eclipse CDT4 - MinGW Makefiles" -
DCMAKE_BUILD_TYPE=Release ../..
copy .project ..\..\.
copy .cproject ..\..\.
cd ..
rmdir /s release
mkdir release
cd release
cmake -G "MinGW Makefiles" -DCMAKE_BUILD_TYPE=Release ../..



To build this project from the command line
===========================================
cd build\release
mingw32-make




To develop/build this project from Eclipse CDT4 integrated development
environment
==================================================================================
Open 'eclipse' found in the start menu entry created by the RobWork
Installer.

* Import by clicking Files->Import->General->Existing projects into
workspace.

* Navigate to local/workspace/RobWorkApp/ClassProjects/Rob01Ex1_2009
and click Ok. Make sure to uncheck the 'copy files into workspace'
option and click Finish.

* Select the newly imported Rob01Ex1_2009 project in the left side of
the Eclipse main screen.

* Click on the 'Targets' tab on the upper right side of the Eclipse
main screen, and find the 'all' and 'clean' targets under build/
release in the tree structure.

* Right click 'all' and choose 'Edit'. Add the folowing to the end of
the 'Build command' string -C build/release

* Do the same for the 'clean' target.

Now the plugin can be build by double clicking the 'all' target.



To run the RobWorkStudio and this plugin
========================================
copy RobWorkStudio.ini_rob01ex1 into RobWorkStudio\bin\Release
\RobWorkStudio.ini
run RobWorkStudio.exe from the 'console' or 'prompt' installed by the
RobWork Installer.

Petr

unread,
Nov 14, 2009, 8:29:29 AM11/14/09
to RobWork
Hi!
Any advice how to add the plugin usng Visual Studio?
Thanks.

On 13 lis, 10:46, Anders Bøgild - Robo[LAB] <anders.bog...@gmail.com>
wrote:
> Hello Rob01'ers
>
> I have some small changes to the README.txt i the root of the
> Rob01Ex1_2009 folder. Here is the revised version:
>
> This all applies to MinGW on Win32
>
> To prepare this project
> =======================
>
> This project should be placed like this relative to RobWork and
> RobWorkStudio (unless you want to edit CMakeLists.txt):
>
> RobWork
> RobWorkStudio
> RobWorkApp
>         ClassProjects
>                 Rob01Ex1_2009
>
> Goto the Rob01Ex1_2009 folder and do the folowing:
> (if you are using the RobWork distribution fromwww.robwork.dk, do the

Anders Bøgild

unread,
Nov 15, 2009, 8:50:41 AM11/15/09
to rob...@googlegroups.com
Basically same procedure except that you should use the "Visual Studio 9 2008" project generator instead when invoking cmake, and you can skip the copying of .poject and .cproject.

So something like this:

cd build\release
cmake -G "Visual Studio 9 2008" -DCMAKE_BUILD_TYPE=Release ../..

and then you can import the project into VS from the build/release folder

I dont use VS much, so i am afraid i cant be of much help other than that...

2009/11/14 Petr <petr...@gmail.com>

lpell...@gmail.com

unread,
Nov 16, 2009, 1:34:58 AM11/16/09
to rob...@googlegroups.com
Hi,
I think Anders' approach is the easiest when given a plugin. Otherwise you can also look at the "Creating a RobWorkStudio Plugin With Visual Studio" guide on the homepage.
 
http://www.mip.sdu.dk/robwork/joomla/index.php?option=com_content&view=article&id=62:creating-a-robworkstudio-plugin-with-visual-studio&catid=42:tutorials&Itemid=66

- Lars-Peter

Petr

unread,
Nov 18, 2009, 10:59:58 AM11/18/09
to RobWork
Hi,

I created plugin using VS 2008, but I can't see it in RobWorkStudio
when i start it. Any idea what could cause this problem?

Thanks!

On 16 lis, 07:34, lpelleki...@gmail.com wrote:
> Hi,
> I think Anders' approach is the easiest when given a plugin. Otherwise you
> can also look at the "Creating a RobWorkStudio Plugin With Visual Studio"
> guide on the homepage.
>
> http://www.mip.sdu.dk/robwork/joomla/index.php?option=com_content&vie...
>
> - Lars-Peter
>
> On Sun, Nov 15, 2009 at 2:50 PM, Anders Bøgild <anders.bog...@gmail.com>wrote:
>
> > Basically same procedure except that you should use the "Visual Studio 9
> > 2008" project generator instead when invoking cmake, and you can skip the
> > copying of .poject and .cproject.
>
> > So something like this:
>
> > cd build\release
> > cmake -G "Visual Studio 9 2008" -DCMAKE_BUILD_TYPE=Release ../..
>
> > and then you can import the project into VS from the build/release folder
>
> > I dont use VS much, so i am afraid i cant be of much help other than
> > that...
>
> > 2009/11/14 Petr <petr....@gmail.com>

Jimmy Jorgensen

unread,
Nov 18, 2009, 12:57:34 PM11/18/09
to rob...@googlegroups.com
Hi,

Did you add the plugin in the RobWorkStudio.ini file?

This is a one of my plugins:

RWSim\DockArea=2
RWSim\Filename=libRWSimPlugin
RWSim\Path=c:/workspace/RobWorkApp/rwsim/libs/release/
RWSim\Visible=false

If you do this, does RWStudio report any error? if not then it could be that
it is loaded but the icon is just not shown. Try looking for it in the
plugins menu.

/Jimmy
> --
>
> You received this message because you are subscribed to the Google
> Groups "RobWork" group.
> To post to this group, send email to rob...@googlegroups.com.
> To unsubscribe from this group, send email to
> robwork+u...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/robwork?hl=.


Petr

unread,
Nov 18, 2009, 3:04:52 PM11/18/09
to RobWork
Hi,

you gave me an idea and I deleted the content of .ini file completely.
Then I started RWStudio (from Visual Studio if that matters) and it
started right with all plugins working. I don't think RWStudio looks
into .ini file at all.

Jimmy Jorgensen

unread,
Nov 18, 2009, 3:20:45 PM11/18/09
to rob...@googlegroups.com
Hi Petr,

Well it does, but only to load dynamic plugins. If you create your own
plugin you should add it there.

/Jimmy

> -----Original Message-----
> From: Petr [mailto:petr...@gmail.com]
> http://groups.google.com/group/robwork?hl=en.


Petr

unread,
Nov 18, 2009, 3:18:20 PM11/18/09
to RobWork
Hi,

maybe we don't understand each other. If I add my plugin into .ini
file, it's not in RWStudio, not as icon a not in plugin menu. But if i
delete everything from .ini file (the preset plugins), they are still
in RWStudio after start and they are working. So I think RWStudio
doesn't register any changes in the .ini file.

Jimmy Jorgensen

unread,
Nov 18, 2009, 3:50:58 PM11/18/09
to rob...@googlegroups.com
Hi Petr,

Well if the present plugins are staticly loaded into robworkstudio (and
they are as default) then they will allways be loaded no matter what the ini
says.

In your case your own plugin is a dynamic plugin and you need it in the
ini. What i suspect is that the RobWorkStudio.exe is not executed from that
directory and will therefore not read the ini file.

Could you try starting RobWorkStudio from the explorer. Browse to
RobWorkStudio/bin/Release and dobbelt-click RobWorkStudio.

Your RobWorkStudio.ini file should be in the same directory. Please post
whatever you wrote in that ini file.

Petr

unread,
Nov 18, 2009, 5:06:21 PM11/18/09
to RobWork
Hi,

problem solved and I'm not even sure how:) It has to be started by
RobWorkStudio.exe (not from VS). Then it demands three .dll from QT so
I copied them to the same folder and of course .ini file. And it works
so finally after about 10 days I have everything running right. Thanks
again Jimmy, you are great helper!

Petr

On 18 lis, 21:50, "Jimmy Jorgensen" <ji...@alison.dk> wrote:
> Hi Petr,
>
Reply all
Reply to author
Forward
0 new messages