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

from ford_msgs.msg import PedTrajVec, NNActions, PlannerMode, Clusters #12

Closed
BingHan0458 opened this issue Dec 10, 2020 · 4 comments
Closed

Comments

@BingHan0458
Copy link

Hey Michael,
Firstly, according to the README.md, I replaced 'git clone https://bitbucket.org/acl-swarm/ford_msgs.git' with 'git clone https://bitbucket.org/acl-swarm/ford_msgs.git -b dev' because I can't find the dev branch and run 'catkin_make'. It successed.
Then I tried to run the './cadrl_node.py', but I got an error 'ImportError: No module named ford_msgs.msg' in line 7, 'from ford_msgs.msg import PedTrajVec, NNActions, PlannerMode, Clusters'.
So how can I do to solve the above two problems?
Thx. Kind regards.

@BingHan0458
Copy link
Author

And I want to know what is the corresponding python version of ROS? Python2.7 or Python3.X? When I run 'catkin_make', the python version displayed by default is python2.7. Will compilation errors occur later?

@mfe7
Copy link
Collaborator

mfe7 commented Dec 10, 2020

Great point - i think we merged that branch into master so you did the right thing.

Did you source the setup.bash associated with the catkin workspace containing ford_msgs? can you rosmsg show any of the ford msgs? that would point to whether the issue is with python or ros

That depends on which version of your OS and ROS you have installed -- eg this codebase was developed on a machine with ros-kinetic and ubuntu 16.04, which is designed for python 2.7. I think some of the newer ros versions support python3 but the python code in this repo is designed for python2.7.

@HanBing0802
Copy link

Thank you very much. I tried your suggest 'source ~/catkin_ws/devel/setup.bash' and it success!
But I got another bug 'Unable to register with master node [http://localhost:11311]: master may not be running yet. Will keep trying.' when I run './cadrl_node.py'. So how can I do to solve it?
Thx. Kind regards.

@luorui93
Copy link

Hi HanBing,
You need to have a roscore running first before you run the node.
Either from a roslaunch file or run roscore directly.

@mfe7 mfe7 closed this as completed Jan 4, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants