I’m trying to link a Raspberry pi with pycroft with a Turtlebot. I have created a skill and I want that when I said “go to somewhere” the turtlebot goes to this place.
I have a python script and it works fine if firstly I connect via ssh and then I execute python go_to_specific_point_on_map.py
Your title is not very descriptive of the project you are doing. (short) Problems that are ROS related are best asked on ROS answers. Problems that are not ROS related need to be asked somewhere differently all together.
If you maybe rename the topic and give more details you can start a discussion in ROS projects and get people to contribute and help you with minor issues of your project (This is what ROS Discourse is best used for).
I’m trying to link a Raspberry pi with pycroft with a Turtlebot via SSH. I have created a skill and I want that when I said “go to somewhere” the turtlebot goes to this place.
No problem with this part. The problem come here.
I have a python script and it works fine if firstly I connect via ssh and then I execute python go_to_specific_point_on_map.py
^[Traceback (most recent call last):
File "./mubita/go_to_specific_point_on_map.py", line 22, in <module>
import rospy
ImportError: No module named rospy
I have tried the arunp9294’s solution but I get the same error. $ ssh tb2@192.168.0.158 “source ~/.bashrc; python go_to_specific_point_on_map.py”
Give a try to ssh tb2@192.168.0.158 bash -c 'python go_to_specific_point_on_map.py'.
If that doesn’t work, post your .bashrc here. Anyways, this is not the best way to use ROS. It’d be better in most cases to install ROS also on your computer and send the command via ROS with ROS_MASTER_URI set to the turtlebot…
And don’t fear installing ROS via package manager. It will tell you what’s about to happen when you type sudo apt install ros-kinetic-desktop or so. If you see some packages are about to be deleted, you can always cancel the installation without any harm being done.
ROS Discourse is for news and general interest discussions. ROS Answers provides a Q&A site which can be filtered by tags to make sure the relevant people can find and/or answer the question, and not overload everyone with hundreds of posts.