[ros-users] Integrating ROS node subscriber with X-Plane plugin

Clayton Morrison clayton at cs.arizona.edu
Mon Aug 2 06:19:36 UTC 2010


Hi Josh,

> What does 'file `rospack find roscpp`/lib/libros.dylib' tell you?


My mistake...

galeru:lib clayton$ file `rospack find roscpp`/lib/libros.dylib
/Users/clayton/Documents/repository/ros/ros/core/roscpp/lib/libros.dylib: Mach-O 64-bit dynamically linked shared library x86_64

Thanks,

-Clay

On Aug 1, 2010, at 5:38 PM, Josh Faust wrote:

> Hi Tom,
> 
> What do you mean by x-plane crashing?  Does it output an error message?
> 
> 
> Some immediate hunches (but not sure how to verify/fix) and questions:
> (1) xplane is a 32bit application.  Could my build process (described below) be inadvertently using 64bit versions of compiled ROS libs?
> 
> This is certainly possible, though I would expect the linker to complain since it looks like you're only trying to build your executable 32bit and not the rest of your ROS dependencies.  What does 'file `rospack find roscpp`/lib/libros.dylib' tell you?
> 
> The first thing I'd check is if the correct compiler flags are actually getting through.  In your package:
> make clean
> VERBOSE=1 make
>  
> If they are, you probably need to set them for the rest of ROS as well by using the ROS_COMPILE_FLAGS cmake variable inside a custom rosconfig.cmake as explained here: http://www.ros.org/wiki/rosbuild#Customizing_the_build_.28debug.2C_optimizations.2C_default_build_flags.29
> 
> 
> 
> (2) I am calling ros::init() in a non-main fn, so I'm using the version based on map<string,string>.  I'm sending in an empty map b/c I have no params to remap.  Am I doing this wrong?  (source for XP_ROS_Plugin.cpp below; I did verify in an separate, non-X-Plane-related build that I can use ros::init() in this way without crashing...)
> 
> That should be fine.
>  
> (3) Generally: how does one go about debugging a setup like this (on mac, ros inside a plugin inside another app)?  How can I get more details about what is going on when ros::init() is called?
> 
> 
> You can usually debug these things the same way you'd debug anything else -- run xplane in gdb and go from there.  First I'd check what error message it's outputting when crashing though.  I'm not on my mac at the moment but if it's crashing with an OSX popup asking to report it you should be able to click the report button and it'll show a bunch more information.
> 
> Josh
>  
> _______________________________________________
> ros-users mailing list
> ros-users at code.ros.org
> https://code.ros.org/mailman/listinfo/ros-users

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ros.org/pipermail/ros-users/attachments/20100801/25544e6f/attachment-0003.html>


More information about the ros-users mailing list