Skip to content
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

latest main compile error #447

Closed
bobd988 opened this issue Mar 29, 2024 · 5 comments
Closed

latest main compile error #447

bobd988 opened this issue Mar 29, 2024 · 5 comments

Comments

@bobd988
Copy link
Contributor

bobd988 commented Mar 29, 2024

The previous version worked fine but with the latest from main branch in same ubuntu 20l04

when running again this examle

 cargo run --example cxx-ros2-dataflow --features ros2-examples

I got

/home/demo/Public/dora/examples/c++-ros2-dataflow/node-rust-api/main.cc:23:28: error: no member named 'create_topic_geometry_msgs_Twist' in 'Ros2Node'
    auto vel_topic = node->create_topic_geometry_msgs_Twist("/turtle1", "cmd_vel", qos);
                     ~~~~  ^
/home/demo/Public/dora/examples/c++-ros2-dataflow/node-rust-api/main.cc:24:32: error: no member named 'create_publisher' in 'Ros2Node'
    auto vel_publisher = node->create_publisher(vel_topic, qos);
                         ~~~~  ^
/home/demo/Public/dora/examples/c++-ros2-dataflow/node-rust-api/main.cc:25:29: error: no member named 'create_topic_turtlesim_Pose' in 'Ros2Node'
    auto pose_topic = node->create_topic_turtlesim_Pose("/turtle1", "pose", qos);
                      ~~~~  ^
/home/demo/Public/dora/examples/c++-ros2-dataflow/node-rust-api/main.cc:26:36: error: no member named 'create_subscription' in 'Ros2Node'
    auto pose_subscription = node->create_subscription(pose_topic, qos, merged_events);
                             ~~~~  ^
/home/demo/Public/dora/examples/c++-ros2-dataflow/node-rust-api/main.cc:55:17: error: use of undeclared identifier 'geometry_msgs'
                geometry_msgs::Twist twist = {
                ^
5 errors generated.
@bobd988
Copy link
Contributor Author

bobd988 commented Mar 29, 2024

DUP as #443

@phil-opp phil-opp reopened this Mar 30, 2024
@phil-opp
Copy link
Collaborator

Issue #443 is about a SIGABRT error when running the ros2-service-server branch, which is not merged yet. So I don't think that this issue is related to it.

no member named 'create_topic_geometry_msgs_Twist' in 'Ros2Node'

This sounds like you maybe forgot to source your ROS2 installation before running the example?

@bobd988
Copy link
Contributor Author

bobd988 commented Mar 30, 2024

it is environment related. I will try another PC

@phil-opp
Copy link
Collaborator

Is the ros2 command available in the terminal where you run the example?

@haixuanTao
Copy link
Collaborator

haixuanTao commented Aug 31, 2024

Closing this as it seems solved and i'm unable to reproduce.

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

No branches or pull requests

3 participants