Comments (2)
Yes, you are right.
It is not good to link a source code folder to a system folder. It would be better to change the solution this way:
- Parameter file (.yaml) uses relative paths for the needed file location.
- Launch.py file can pass the prefix of the absolute path to the openvino sample program.
- In the program, generate the absolute path by combining the prefix and relative paths in parameter file.
from ros2_openvino_toolkit.
I found there are different data file point to different folder.
sample/tests/testParam/param/image_object_service_test.yaml:18: input_path: "/home/intel/ros2_overlay_ws/src/ros2_openvino_toolkit/data/images/car_vihecle.png"
sample/tests/testParam/param/pipeline_image_test.yaml:4: input_path: /opt/openvino_toolkit/ros2_openvino_toolkit/data/images/team.jpg
Could we put all the data as resources of ros2_openvino_package, and use relative in yaml?
for example :
Input_path: "data/images/car_vihecle.png"
input_path: "data/images/team.jpg"
Could we use ros2 API to get data path like below?
#include <ament_index_cpp/get_package_share_directory.hpp>
// may throw PackageNotFoundError exception
std::string package_share_directory = ament_index_cpp::get_package_share_directory("my_package_name");
Here is a reference :https://answers.ros.org/question/288501/ros2-equivalent-of-rospackagegetpath/
from ros2_openvino_toolkit.
Related Issues (20)
- The topic of "/ros2_openvino_toolkit/face_detection" no message when test pipeline image.
- The test is failed for ros2 launch dynamic_vino_test pipeline_reidentification_test.launch.py at ROS2 GALACTIC VERSION
- Run object segmentation sample code input from StandardCamera block at the log "[ DEBUG ] label size 0" HOT 1
- Broken CI HOT 2
- Migrating ros2_openvino_toolkit to windows HOT 2
- Introduce Factory design mode for ros2_openvino_toolkit
- New model support for pose estimation HOT 2
- New model support for OCR
- New model support for pointcloud inputs
- New model support for Speech Recognition
- Refine matToBlob function from derived classes to BaseModel HOT 2
- ObjectSegmentationMaskrcnn not resizing input image HOT 15
- NMS Threshold and model input size not configurable for Yolov8
- Topics can't be used with namespaces
- Object Detection Yolov8 Support HOT 1
- Interpretation of RosTopic HOT 1
- New target device support (MOVIDIUS/VPU) HOT 1
- Issue of colcon build
- LLM usecase support
- Enable TTS feature
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ros2_openvino_toolkit.