Cannot launch node of type [joint_state_publisher/joint_state_publisher]
I installed the joint state publisher using this command:
sudo apt-get install ros-kinetic-joint-state-publisher
but when I tried to lunch tutorials with joint state publisher, I am getting the error :
ERROR: cannot launch node of type [joint_state_publisher/joint_state_publisher]: can't locate node [joint_state_publisher] in package [joint_state_publisher]
If someone knows the solution please share?
What does
rospack find joint_state_publisher
returns ? I suspect you haven't sourced your environment.thanks for the response, it is returning
Alright, that means the package is correctly installed and your envirronment propperly sourced. Can you add more details about what you are actually launching ? You can edit your question to add the launch file responsible of the error message and how (i.e. the command) you launch it please ?
Sorry for the late reply, I am putting a [link] to GitHub gist as I do not have permission to upload files yet. (https://gist.github.com/ixtiyoruz/f7d...)
I still need to know all the commands you run to get this error. I couldn't reproduce it so I can't help you if I don't know what exactly you are doing (including how you sourced the workspace, if you have openned a new terminal, if you have something related to ROS your .bashrc etc..).
sorry, I found the problem, it was I think because of aliasing. In my bashrc I had aliased python3 to python2 or vise versa. I deleted it yesterday now ros started working normally. Thank you.
so the things I have done to solve the error are:
echo "source /opt/ros/kinetic/setup.bash" >> ~/.bashrc
source ~/.bashrc
sudo rm /etc/ros/rosdep/sources.list.d/20-default.list
sudo rosdep init
rosdep update
rm -r build devel install
catkin_make
source devel/setup.bash