Skip to content
This repository has been archived by the owner on Aug 7, 2024. It is now read-only.

[ERROR] ‘struct PipelineManager::PipelineData’ has no member named ‘parent_node’ #103

Open
3 of 5 tasks
Corsair-cxs opened this issue Feb 26, 2021 · 2 comments
Open
3 of 5 tasks

Comments

@Corsair-cxs
Copy link
Contributor

error: ‘struct PipelineManager::PipelineData’ has no member named ‘parent_node’

Environment(for bug reports)

  • Operating System: Ubuntu 18.04
  • ROS version: Melodic
  • ros_openvino_toolkit version: dev-ov2020.3 (newest)

My Related code

pipeline_manager.cpp,

  • function std::shared_ptr<Pipeline> PipelineManager::createPipeline(const Params::ParamManager::PipelineRawData& params)
  PipelineData data;
  data.parent_node = node;

pipeline_manager.h:

  • PipelineData's defination
  struct PipelineData
  {
    Params::ParamManager::PipelineRawData params;
    std::shared_ptr<Pipeline> pipeline;
    std::vector<std::shared_ptr<ros::NodeHandle>> spin_nodes;
    std::shared_ptr<std::thread> thread;
    PipelineState state;
  };

Current Result

/home/cxs/my_code/ros_vino_ws/src/ros_openvino_toolkit/dynamic_vino_lib/src/pipeline_manager.cpp:72:8: error: ‘struct PipelineManager::PipelineData’ has no member named ‘parent_node’
   data.parent_node = node;
        ^~~~~~~~~~~
/home/cxs/my_code/ros_vino_ws/src/ros_openvino_toolkit/dynamic_vino_lib/src/pipeline_manager.cpp:72:22: error: ‘node’ was not declared in this scope
   data.parent_node = node;
                      ^~~~

It seems that parent_node was defined in ros2_openvino_toolkit's pipeline_manager.h while not defined in this project.

@LewisLiuPub
Copy link
Contributor

Thanks for the contribution.

just using ros node handler to replace of ros2 node instance, when pub/sub messages.

@Corsair-cxs
Copy link
Contributor Author

Thanks for the contribution.

just using ros node handler to replace of ros2 node instance, when pub/sub messages.

Okey, thanks!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants