From: chyujian <iam...@gm...> - 2011-05-10 05:56:14
|
hi, guys weeks ago i tried to build a multi-thread using pthread to work with player, in detail, i sent one of the sub-thread to retrieve sensor datas from player and report them to the decision-making thread, but failed. however, i really need a multi-thread or multi-process model to designate different component different missions, like, the walker-thread is only dedicated to implement the pre-fixed walk action, meanwhile the sonar-monitor-thread is constantly watching the obstacles around, once somebody put a stake in front of the robot suddenly, the sonar-monitor-thread is expected to send an instant message directly to the walk-thread to force the walk-thread to abort its current walking mission and turn around immediately to protect the robot itself. i checked the palyer docs about multi-thread or process programming, but i didn't quite understand the description about boost signals and thread in the libplayerc++'s document. could anybody tell me weather is it the internal mechanism inside the player or some kind of multi-thread accessibility offered to us that mentioned in the libplayerc++'s documentation? |