How do I get the 'roscp' command to work?
I am following the Creating a ROS msg and srv tutorial step 4.1.
- I'm using ROS Melodic v20190415.1
- I'm running on 64-bit Windows 10
- Using the ROS command line
- I've executed setup.bat
ROS command line result:
~catkin_ws\src\beginner_tutorials>roscp rospy_tutorials AddTwoInts.srv srv/AddTwoInts.srv
'roscp' is not recognized as an internal or external command,
operable program or batch file.
Environment:
C:\Users\JP\catkin_ws\src\beginner_tutorials\src>set ros
ROS_DISTRO=melodic
ROS_ETC_DIR=C:/opt/ros/melodic/x64/etc/ros
ROS_MASTER_URI=http://localhost:11311
ROS_PACKAGE_PATH=C:/Users/JP/catkin_ws/src;C:\opt\ros\melodic\x64\share
ROS_PYTHON_VERSION=2
ROS_ROOT=C:/opt/ros/melodic/x64/share/ros
ROS_VERSION=1
I can also roscd the rosbash package and see roscp in the file.
Can you please update your question with a link to the tutorial that you're referring to?
sure, done
Can you show us the output of the following two commands
printenv | grep ROS
andprintenv PATH | tr ":" "\n" | grep ros
It sounds as though your ROS environment has not been initialised properly, these two commands will help pinpoint what's missing.
@PeteBlackerThe3rd: this is a ROSonWindows installation, I doubt
printenv | grep ROS
is going to work there.@jalamani: for future questions: please tag your questions appropriately with the relevant
Windows10
andRosOnWindows
tags.@PeteBlackerThe3rd i believe the windows equivalent to printenv is set and i get the following:
Cross-posted it here: https://github.com/ms-iot/ROSOnWindow...