i got problems with roslaunch learning_nxt robot.launch
i got this error when i try this command on console :
$ roslaunch learning_nxt robot.launch
process[nxt_ros-2]: started with pid [23000]
Traceback (most recent call last):
File "/home/luis/nxt/src/nxt_ros/src/nxt_ros/nxt_ros.py", line 37, in <module>
import nxt.locator
ImportError: No module named nxt.locator
Update:
i'll describe the process to create the package first at home directory:
mkdir nxt
cd nxt
git clone --recursive https://github.com/NXT-ROS/nxt.git src
then on the root of the package directory
catkin_make (everything goes fine)
source devel/setup.bash
until this point everything is ok
then when i try this:
roslaunch nxt_ros_test test.launch
or
roslaunch learning_nxt robot.launch
both have the same problem
Welcome! What version of ROS are you using and what OS? Can you please provide a link to the package that you're using? Is it this
nxt_ros
? Are you using a simulator or a physical robot?@luisitomzt: I moved your updated info to your question, but in the future please don't use an answer to give more info about your question
I'm a little confused by this new info. Are you using a catkin workspace? Or, are you just doing everything from a regular folder that you created in your home directory?
i created a folder in home/my user/ called “nxt”. Then in this folder I cloned nxt_ros using the command I mentioned before. By executing catkin_make the folder I created becomes a catkin workspace isn’t it?
Yes, but you need to put your packages in the
src
folder inside the workspace. Checkout my updated answer and let me if it helps/you need further clarification.So, I took a look at the README and it says that you need to use
catkin build
notcatkin_make
. This could be the source of your problem.i installed
python-catkin-tools
for usingcatkin build
. then erased the nxt workspace and make it again for a clean installation. i followed the steps i mentioned before, but the problem persist.Did you use
catkin_make
? If so, that is not compatible withcatkin build
. You can't usecatkin_make
withcatkin_tools
. Try again following the instructions in my answer (or the repo's README).