Hi,
So I tried including action_lib and this was when the trouble started.
genmsg_py.py: error: please specify args
NMAKE : fatal error U1077: 'call' : return code '0x2'
Stop.
NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\Bin\nmake.exe"' : return code '0x2'
Stop.
NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\Bin\nmake.exe"' : return code '0x2'
Stop.
I am not sure how to handle this. I am happy for all ideas!
After all, I hope this helps answering your questions and might helps others. However I guess this makes medoing the comms download + actionlib.
Cheers, Lorenz
Hi Daniel,
here are the steps I've take so far:
1. Downloading and installing the Msvc SDK -> tested sucessfully
2. Setting up the Msvc SDK Projects -> successfully compiled a slightly modified talker/listner and ran it via VS10
3. Downloaded and trying to build Msvc SDK Messages, got stuck at winros comms configure...
3b. Experimenting with building actions via VS10
- building boost_1_47 for VC10
- Copying boost_1_47_thread.lib/.dll and boost_1_47_date_time.lib/.dll to rosdep
- Renaming those boost_1_47_*.lib in libboost_1_47_*.lib
- Including actionlib.lib into the ros propertysheet for vs
- Succesfully building and starting "my" test action server and client (TestAction)
After all, I hope this helps answering your questions and might helps others. However I guess this makes medoing the comms download + actionlib.
Cheers, Lorenz
Am Dienstag, 11. September 2012 15:03:25 UTC+2 schrieb Daniel Stonier:
Was this error after the default comms download or was it the comms download + actionlib? If so, how exactly did you include actionlib?Daniel
On 17 September 2012 17:14, Lorenz Halt <loren...@gmail.com> wrote:Hi Daniel,
here are the steps I've take so far:
1. Downloading and installing the Msvc SDK -> tested sucessfully
2. Setting up the Msvc SDK Projects -> successfully compiled a slightly modified talker/listner and ran it via VS10
3. Downloaded and trying to build Msvc SDK Messages, got stuck at winros comms configure...
3b. Experimenting with building actions via VS10
- building boost_1_47 for VC10
- Copying boost_1_47_thread.lib/.dll and boost_1_47_date_time.lib/.dll to rosdep
- Renaming those boost_1_47_*.lib in libboost_1_47_*.lib
- Including actionlib.lib into the ros propertysheet for vs
- Succesfully building and starting "my" test action server and client (TestAction)
After all, I hope this helps answering your questions and might helps others. However I guess this makes medoing the comms download + actionlib.
Lorenz,Is your goal just to process .action files or to compile a working program? If you're just wanting to generate the .action files you shouldn't need boost or actionlib. We tested this yesterday:
- roscreate-stack a new stack alongside the other comms stacks.
- roscreate-comms-pkg inside the new stack
- add an action
- twiddle stack and package CMakeLists.txt (mostly adding actionlib_msgs as dependancy)
- twiddle stack.xml (again actionlib_msgs)
No problem.
If you want to build a cpp or py package (ros style) that has an action client/server, then the easiest way is to use an extended workspace (sdk install space + custom buildspace). I haven't written a tutorial for that, but I can do so if you're interested.DanielCheers, Lorenz
Am Dienstag, 11. September 2012 15:03:25 UTC+2 schrieb Daniel Stonier:
Was this error after the default comms download or was it the comms download + actionlib? If so, how exactly did you include actionlib?Daniel--
Phone : +82-10-5400-3296 (010-5400-3296)
Home: http://snorriheim.dnsdojo.com/
Yujin R&D: http://rnd.yujinrobot.com/
>test foo
Args: []
Cheers,but:>python test.py foo
Args: ['foo']
And:>assoc .py
.py=Python.File
>ftype Python.File
"C:\Python27\python.exe" "%1" %*
Even it was telling me with ftype it was not correct in the registry (%* was missing), so I changed it to[HKEY_CLASSES_ROOT\Applications\python.exe\shell\open\command]
@="C:\Python27\python.exe "%1" %*"
And now it builds. I am aware that this was not a win_ros but a python_win problem, however I hope this might help someone with comparable issues.
Hi Daniel,
maybe a tutorial on how to create an action would not be wrong. Especially how to "add an action" into the CMakeList.txt and what exactly to twiddle. And maybe directly what to do to include the generated action/srv/msg into the VS Project to use it.
Thanks a lot in advance! I feel like we came a long way already!
Cheers,
Lorenz
Is your goal just to process .action files or to compile a working program? If you're just wanting to generate the .action files you shouldn't need boost or actionlib. We tested this yesterday:
- roscreate-stack a new stack alongside the other comms stacks.
- roscreate-comms-pkg inside the new stack
- add an action
- twiddle stack and package CMakeLists.txt (mostly adding actionlib_msgs as dependancy)
- twiddle stack.xml (again actionlib_msgs)
No problem.
roscreate-comms-pkg dude_commsfails with error: current working directory is not on ROS_PACKAGE_PATH!
Hey,
So I did, but now for some reasonsroscreate-comms-pkg dude_commsfails with error: current working directory is not on ROS_PACKAGE_PATH!
What working directory should be included? I edited setup.bat to
set ROS_PACKAGE_PATH=%ROS_HOME%/ros/fuerte/x86/share;%ROS_HOME%/ros/fuerte/x86/stacks;c:/work/comms;c:/work/comms/custom_comms
but no success so far. Since it did work well something must have changed maybe due to uninstalling/redoing roscreate?
Cheers,
Lorenz
On 25 September 2012 17:35, Lorenz Halt <loren...@gmail.com> wrote:Hey,
So I did, but now for some reasonsroscreate-comms-pkg dude_commsfails with error: current working directory is not on ROS_PACKAGE_PATH!
What working directory should be included? I edited setup.bat to
set ROS_PACKAGE_PATH=%ROS_HOME%/ros/fuerte/x86/share;%ROS_HOME%/ros/fuerte/x86/stacks;c:/work/comms;c:/work/comms/custom_comms
but no success so far. Since it did work well something must have changed maybe due to uninstalling/redoing roscreate?
Cheers,
LorenzAh, I need a better error message. I ticketed it a few days ago I suspect you've called an env.bat somewhere before running that. It sets a ROS_ROOT and if roscreate detects that variable, it flails about a bit.Start a new shell without calling env.bat (i.e. no ROS_ROOT). It should work.I'll get my colleague to have a look at that this week.He also ran into trouble linking an action client program in microsoft express today. Boost's auto-linking isn't playing nice with the cmake build boost in the rosdeps directory (can't find an appropriately named thread library). Temporary workaround is to disable that by defining the BOOST_ALL_NO_LIB preprocessor macro for the project or add it to the ros properties file. I'll get him to update the sdk examples with a working actionlib project and updated ros properties.
Am Dienstag, 25. September 2012 10:48:17 UTC+2 schrieb Daniel Stonier:On 25 September 2012 17:35, Lorenz Halt <loren...@gmail.com> wrote:Hey,
So I did, but now for some reasonsroscreate-comms-pkg dude_commsfails with error: current working directory is not on ROS_PACKAGE_PATH!
What working directory should be included? I edited setup.bat to
set ROS_PACKAGE_PATH=%ROS_HOME%/ros/fuerte/x86/share;%ROS_HOME%/ros/fuerte/x86/stacks;c:/work/comms;c:/work/comms/custom_comms
but no success so far. Since it did work well something must have changed maybe due to uninstalling/redoing roscreate?
Cheers,
LorenzAh, I need a better error message. I ticketed it a few days ago I suspect you've called an env.bat somewhere before running that. It sets a ROS_ROOT and if roscreate detects that variable, it flails about a bit.Start a new shell without calling env.bat (i.e. no ROS_ROOT). It should work.I'll get my colleague to have a look at that this week.He also ran into trouble linking an action client program in microsoft express today. Boost's auto-linking isn't playing nice with the cmake build boost in the rosdeps directory (can't find an appropriately named thread library). Temporary workaround is to disable that by defining the BOOST_ALL_NO_LIB preprocessor macro for the project or add it to the ros properties file. I'll get him to update the sdk examples with a working actionlib project and updated ros properties.Ok, sounds great! I'm looking forward to it :-). I think I worked around the thread-lib problem by copying the boost-thread-lib into the deps folder...
I actually called env before, without it it work better. I uncommented "add_action_files( ... ) but it is not recognized as any CMake command.
Lorenz
Daniel.Am Montag, 24. September 2012 01:24:45 UTC+2 schrieb Daniel Stonier:On 19 September 2012 20:13, Lorenz Halt <loren...@gmail.com> wrote:
Hi Daniel,
maybe a tutorial on how to create an action would not be wrong. Especially how to "add an action" into the CMakeList.txt and what exactly to twiddle. And maybe directly what to do to include the generated action/srv/msg into the VS Project to use it.
That's probably a good idea.In the meantime, uninstall roscreate and redownload/install it. We added a few comments in the cmake to show how to add an action (roscreate-comms-pkg) and also updated a message to indicate how you should update your stack files as well.
Daniel.
Thanks a lot in advance! I feel like we came a long way already!
Cheers,
Lorenz
Is your goal just to process .action files or to compile a working program? If you're just wanting to generate the .action files you shouldn't need boost or actionlib. We tested this yesterday:
- roscreate-stack a new stack alongside the other comms stacks.
- roscreate-comms-pkg inside the new stack
- add an action
- twiddle stack and package CMakeLists.txt (mostly adding actionlib_msgs as dependancy)
- twiddle stack.xml (again actionlib_msgs)
No problem.
--