Making periodically execute RT component synchronized with simulation timeIn this section we describe how to make a periodically executing RT component to run synchronizing with the simulation time.This sample is placed at (OpenHRP installed directory)/share/OpenHRP-3.1/sample/example/simulationEC. Configuring execution context
OpenHRP contains an execution context to implement periodical execution on an RT component that
run synchronizing with the simulation time. This execution context is placed at following location. (OpenHRP installed directory)/lib/libhrpRTM.so Changing rtc.conf settingsAdd following 3 lines to the configuration file used by RT component. Line1 declares that it uses execution context for simulation. And line2 specifies tha path to "libhrpRTM.so". exec_cxt.periodic.type: SimulationEC manager.modules.load_path: (OpenHRP installed directory)/lib manager.modules.preload: SimulationEC.so Execution of the sample
Warning
|