-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update sdk bindings #59
base: main
Are you sure you want to change the base?
Conversation
include/tof_ros2cpp/aditof_utils.h
Outdated
@@ -53,7 +53,7 @@ std::string * parseArgs(int argc, char ** argv); | |||
std::shared_ptr<aditof::Camera> initCamera(std::string * arguments); | |||
void startCamera(const std::shared_ptr<aditof::Camera> & camera); | |||
void stopCamera(const std::shared_ptr<aditof::Camera> & camera); | |||
void setFrameType(const std::shared_ptr<aditof::Camera> & camera, const std::string & type); | |||
void setCameraMode(const std::shared_ptr<aditof::Camera> & camera, const std::string & type); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
type->mode
Also, latest dev-5.1.0 uses int type for mode
src/aditof_utils.cpp
Outdated
return; | ||
} else { | ||
LOG(INFO) << "Frame type set: " << type; | ||
LOG(INFO) << "Frame mode set: " << mode; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It should be "Camera mode" not "Frame mode"
c278a9c
to
bd5cb7d
Compare
src/aditof_utils.cpp
Outdated
void getAvailableFrameTypes( | ||
const std::shared_ptr<aditof::Camera> & camera, std::vector<std::string> & availableFrameTypes) | ||
void getAvailableModes( | ||
const std::shared_ptr<aditof::Camera> & camera, std::vector<uint8_t> & availableModes) | ||
{ | ||
//get available frae types of camera |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Update comment to mode
src/tof_camera_node.cpp
Outdated
@@ -246,17 +246,17 @@ int main(int argc, char * argv[]) | |||
} | |||
|
|||
// getting available frame types, backward compatibility |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
similarly here
Even though build works, the node does not start
2 more things need checking:
|
bd5cb7d
to
c68ebcb
Compare
Remove old config files from tof_config since they are no longer used. |
@@ -53,13 +53,13 @@ std::string * parseArgs(int argc, char ** argv); | |||
std::shared_ptr<aditof::Camera> initCamera(std::string * arguments); | |||
void startCamera(const std::shared_ptr<aditof::Camera> & camera); | |||
void stopCamera(const std::shared_ptr<aditof::Camera> & camera); | |||
void setFrameType(const std::shared_ptr<aditof::Camera> & camera, const std::string & type); | |||
void setCameraMode(const std::shared_ptr<aditof::Camera> & camera, const uint8_t & mode); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we need both setMode and setCameraMode?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I removed setMode because is the same as setCameraMode
tof_config/logo.png
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we use this image somewhere?
de78658
to
c61dc21
Compare
@@ -1,4 +1,4 @@ | |||
{ | |||
"depthIni": "./config/RawToDepthAdsd3030_sr-native.ini;./config/RawToDepthAdsd3030_lr-native.ini;./config/RawToDepthAdsd3030_sr-qnative.ini;./config/RawToDepthAdsd3030_lr-qnative.ini;./config/RawToDepthAdsd3030_sr-mixed.ini;./config/RawToDepthAdsd3030_lr-mixed.ini;./config/RawToDepthAdsd_pcm-native.ini", | |||
"depthIni": "./config/RawToDepthAdsd3030_0.ini;./config/RawToDepthAdsd3030_1;./config/RawToDepthAdsd3030_2.ini;./config/RawToDepthAdsd3030_3.ini;./config/RawToDepthAdsd3030_6.ini;./config/RawToDepthAdsd3030_5.ini;./config/RawToDepthAdsd_4.ini", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/config/RawToDepthAdsd3030_1 is missing .ini extension.
Signed-off-by: Vasile Holonec <[email protected]>
c61dc21
to
06abc94
Compare
Do not merge this PR until branch dev-5.1.0 from tof is merged into main. |
Azure Pipelines successfully started running 1 pipeline(s). |
This PR is made for tof sdk from dev-5.1.0 branch.