-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
did a copy of classical buoydetector in buoy::Detector
- Loading branch information
deshalb
committed
May 23, 2012
1 parent
22092dd
commit 09fd889
Showing
7 changed files
with
664 additions
and
33 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
require 'orocos' | ||
require 'vizkit' | ||
include Orocos | ||
|
||
Orocos::CORBA.name_service = "192.168.128.51" | ||
Orocos.initialize | ||
|
||
detector = Orocos::TaskContext.get "buoy_detector" | ||
detector.force_cutting.writer.write(true) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
require 'orocos' | ||
require 'vizkit' | ||
include Orocos | ||
|
||
Orocos::CORBA.name_service = "192.168.128.51" | ||
Orocos.initialize | ||
|
||
#Orocos.run "buoydetector" do | ||
Orocos.run("buoydetector_test" => nil, :wait => 20) do | ||
detector = Orocos::TaskContext.get "buoydetector_test" | ||
camera = Orocos::TaskContext.get "front_camera" | ||
|
||
#Vizkit.display detector.buoy | ||
#Vizkit.display detector.relative_position | ||
|
||
camera.frame.connect_to detector.frame | ||
detector.configure | ||
detector.start | ||
|
||
Vizkit.display camera.frame | ||
|
||
begin | ||
puts "busy" | ||
Vizkit.exec | ||
rescue Interrupt => e | ||
puts "Ende" | ||
end | ||
end | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
require 'orocos' | ||
require 'vizkit' | ||
include Orocos | ||
|
||
#Orocos::CORBA.name_service = "192.168.128.51" | ||
Orocos::CORBA.name_service = "127.0.0.1" | ||
|
||
Orocos.initialize | ||
|
||
#Orocos.run "buoydetector" do | ||
Orocos.run("buoydetector_test" => nil, :wait => 20) do | ||
detector = TaskContext.get "buoydetector_test" | ||
#camera = Orocos::TaskContext.get "front_camera" | ||
camera = TaskContext.get 'front_camera_simulation' | ||
# camera.start | ||
|
||
buoy_monitor = Vizkit.display detector.buoy | ||
|
||
Vizkit.display detector.relative_position | ||
|
||
camera.frame.connect_to detector.frame | ||
detector.configure | ||
detector.start | ||
|
||
# Vizkit.display camera.frame | ||
|
||
begin | ||
puts "busy" | ||
Vizkit.exec | ||
rescue Interrupt => e | ||
puts "Ende" | ||
end | ||
|
||
end | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
require "vizkit" | ||
|
||
Orocos::CORBA.name_service = "127.0.0.1" | ||
Orocos::CORBA.max_message_size = 80000000 | ||
Orocos.initialize | ||
|
||
if ARGV.size < 1 | ||
puts "No Log File in use" | ||
exit 1 | ||
end | ||
|
||
#Orocos.run do | ||
Orocos.run("buoydetector_test", :wait => 20) do | ||
log = Orocos::Log::Replay.open(ARGV[0], Typelib::Registry.new) | ||
|
||
detector = Orocos::TaskContext.get "buoydetector_test" | ||
|
||
log.front_camera.frame.connect_to detector.frame | ||
|
||
#Vizkit.display detector.buoy | ||
#Vizkit.display detector.relative_position | ||
|
||
detector.configure | ||
|
||
detector.start | ||
|
||
begin | ||
Vizkit.control log | ||
Vizkit.exec | ||
rescue Interrupt => e | ||
puts "Ende" | ||
end | ||
end | ||
|
||
|
Oops, something went wrong.