Debugging a C++ Controller within a running OpenHRP Simulation

2 posts / 0 new
Last post
rojas70
Offline
Last seen: 12 years 8 months ago
Joined: 2011-09-05 16:28
Debugging a C++ Controller within a running OpenHRP Simulation

Greetings,

I am using OpenHRP 3.1.0 in Ubuntu Linux 10.04. I currently using Eclipse-Ganymede (as downloaded from the OpenHRP site) to run the GrxUI simulation interface. The OpenHRP code runs well in Eclipse for the different examples.

I am currently trying to develop my own controller using C++ and Eclipse CDT.

My goal is to load the code for the OpenHRP simulation into eclipse along with my C++ code. I want to launch the debugger for the GrxUI and from there step into the C++ code of my controller to see how my code affects the behavior of the robot in the simulation.

So far this is what I have been able to do:

1a) Import the GrxUI project files into Eclipse by using the import function and selecting the OpenHRP-3.1.0-Release/GrxUIonEclipse-project-0.9.8. 1b) Import my own C++ controller code. 2a) I can then select the GrxUI project and select the "Debug Configurations". 2b) I create a new Eclipse Application configuration. 2c) Under the main tab, in the 'Program to Run' section, I select the 'Run an application' option and select the first application >> 'com.generalrobotix.ui.grxui.applications'. 3) I place breakpoints both in the GrxUI project and in the C++ project. 4) I click on 'Debug'. 5) A new eclipse window opens. 6) I switch the perspective to the GrxUI perspective. 7) I load a simulation 8) I start the simulation

The result is that the code stops at breakpoints within the GrxUI code but not in the C++ code.

After this I tried also clicking on the C++ project and selecting Debug Configurations. I selected 'C/C++ Attach to Local Application'. I did a number of things here but bottom line I never got the code to stop in the C++ code.

I do not have a lot of experience with linux or OpenHRP but I do feel I am quite close.

Any advice is greatly appreciated. Thanks.

English
heihei105
Offline
Last seen: 12 years 3 months ago
Joined: 2012-02-07 12:04
[openrtm-users 02425] Coach Outlet Online

http://www.coachfactorystore-outlet.net
http://www.coachfactory-outlet-onlines.net
http://www.coachfactoryoutlet-onlinee.com
http://www.coachoutletstoreonline2012.net
http://www.coachoutletonlinestore.ca http://www.coachfactorystoresonline.net
http://www.lvbagss-online.net http://www.coachfactorysoutletsonlines.com
http://www.coachfactorys-onlines.net http://www.louisvuittonbags2012.net
http://www.coachbagsz.net http://www.burberryscarfs2012.com

_______________________________________________
openrtm-users mailing list
openrtm-users@openrtm.org
http://www.openrtm.org/mailman/listinfo/openrtm-users

Log in or register to post comments

Download

latest Releases : 2.0.0-RELESE

2.0.0-RELESE Download page

Number of Projects

Choreonoid

Motion editor/Dynamics simulator

OpenHRP3

Dynamics simulator

OpenRTP

Integrated Development Platform

AIST RTC collection

RT-Components collection by AIST

TORK

Tokyo Opensource Robotics Association

DAQ-Middleware

Middleware for DAQ (Data Aquisition) by KEK