ros2 / ros2cli

ROS 2 command line interface tools
Apache License 2.0
166 stars 158 forks source link

ros2 node can't be started #874

Closed alittlechiled closed 6 months ago

alittlechiled commented 6 months ago

I use the launch to start a node. image

However, I can't find the node when I use the "ros2 node list" in my terminal. image

this is my launch: image this is my head file of the node code: image image this is my source file of the node code: 058d58e68f029b1730b7b1d67bdb2cea d36a2d5a8fb790e1e5eb5db88e573ef2 6ddbda32257444c3a62711f2469bcb4f a4aae13c44ba7f4c364200428325004e

this is my cmake: 7053d362d66ac513fb0b42f0d6ca3dea

My file is shown below: a9b88ead53189b4ed7924fbc1f4eb8ae

When I found this bug, I checked all the naming issues.However, it didn't work. I checked the Internet and found no solution...

My ubuntu is 20.04 and my ros is humble

alittlechiled commented 6 months ago

I solve the problem by changing the name of the namespace and function pack ......

clalancette commented 6 months ago

Please open questions like this on https://robotics.stackexchange.com/questions/tagged/ros, which is our central Question and Answer site. You'll get a better answer there, and it will be searchable for the future.

Make sure to include a lot of information on what platform you are using, which ROS distribution you are using, and the exact steps you took.