ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

I have the same exact problem. I sourced setup.bash and my PYTHON_PATH is set to ${ROS_ROOT}/core/roslib/src:${PYTHONPATH}

Basically here is my whole setup.sh file

export ROS_ROOT=/opt/ros/electric/ros
export PATH=${ROS_ROOT}/bin:${PATH}
export PYTHONPATH=${ROS_ROOT}/core/roslib/src:${PYTHONPATH}
export ROS_PACKAGE_PATH=/opt/ros/electric/stacks
if [ ! "$ROS_MASTER_URI" ] ; then export ROS_MASTER_URI=http://localhost:11311 ; fi

I am trying to run a python file through a package I have made. Any help is appreciated. I'm sorry of my formatting is out of order- I am new to the forum.