-
Notifications
You must be signed in to change notification settings - Fork 94
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Will Baker
committed
Jun 6, 2018
1 parent
8cc8dc4
commit 5b86f9b
Showing
10 changed files
with
108 additions
and
5 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
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,16 @@ | ||
#include <nodelet/nodelet.h> | ||
#include "avt_vimba_camera/mono_camera.h" | ||
|
||
namespace avt_vimba_camera | ||
{ | ||
|
||
class MonoCameraNodelet : public nodelet::Nodelet | ||
{ | ||
public: | ||
virtual void onInit(); | ||
virtual ~MonoCameraNodelet(); | ||
private: | ||
MonoCamera* camera_; | ||
}; | ||
|
||
} |
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,16 @@ | ||
#include <nodelet/nodelet.h> | ||
#include "avt_vimba_camera/stereo_camera.h" | ||
|
||
namespace avt_vimba_camera | ||
{ | ||
|
||
class StereoCameraNodelet : public nodelet::Nodelet | ||
{ | ||
public: | ||
virtual void onInit(); | ||
virtual ~StereoCameraNodelet(); | ||
private: | ||
StereoCamera* camera_; | ||
}; | ||
|
||
} |
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,5 @@ | ||
<launch> | ||
<node pkg="nodelet" type="nodelet" name="avt_vimba_nodelet_manager" args="manager" output="screen"/> | ||
|
||
<node pkg="nodelet" type="nodelet" name="mono_camera" args="load avt_vimba_camera/MonoCameraNodelet avt_vimba_nodelet_manager" output="screen"/> | ||
</launch> |
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,12 @@ | ||
<library path="lib/libavt_camera_nodelets"> | ||
<class name="avt_vimba_camera/MonoCameraNodelet" type="avt_vimba_camera::MonoCameraNodelet" base_class_type="nodelet::Nodelet"> | ||
<description> | ||
MonoCamera Nodelet | ||
</description> | ||
</class> | ||
<class name="avt_vimba_camera/StereoCameraNodelet" type="avt_vimba_camera::StereoCameraNodelet" base_class_type="nodelet::Nodelet"> | ||
<description> | ||
StereoCamera Nodelet | ||
</description> | ||
</class> | ||
</library> |
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,18 @@ | ||
#include <pluginlib/class_list_macros.h> | ||
#include "avt_vimba_camera/mono_camera_nodelet.h" | ||
|
||
namespace avt_vimba_camera | ||
{ | ||
void MonoCameraNodelet::onInit() | ||
{ | ||
NODELET_DEBUG("Initializing nodelet..."); | ||
camera_ = new MonoCamera(getMTNodeHandle(), getMTPrivateNodeHandle()); | ||
} | ||
|
||
MonoCameraNodelet::~MonoCameraNodelet() | ||
{ | ||
delete camera_; | ||
} | ||
} | ||
|
||
PLUGINLIB_EXPORT_CLASS(avt_vimba_camera::MonoCameraNodelet, nodelet::Nodelet) |
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,20 @@ | ||
#include <pluginlib/class_list_macros.h> | ||
#include "avt_vimba_camera/stereo_camera_nodelet.h" | ||
#include <boost/thread.hpp> | ||
|
||
namespace avt_vimba_camera | ||
{ | ||
void StereoCameraNodelet::onInit() | ||
{ | ||
NODELET_DEBUG("Initializing nodelet..."); | ||
camera_ = new StereoCamera(getMTNodeHandle(), getMTPrivateNodeHandle()); | ||
boost::thread stereoThread(&avt_vimba_camera::StereoCamera::run, camera_); | ||
} | ||
|
||
StereoCameraNodelet::~StereoCameraNodelet() | ||
{ | ||
delete camera_; | ||
} | ||
} | ||
|
||
PLUGINLIB_EXPORT_CLASS(avt_vimba_camera::StereoCameraNodelet, nodelet::Nodelet) |