8000 GitHub - tkkhuu/hub_pr2: Code for detecting signal from the sensors using Raspberry Pi and ROS
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

tkkhuu/hub_pr2

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 

Repository files navigation

hub_pr2

Code for detecting signal from the sensors using Raspberry Pi and ROS, instructions on running the code:

1) Running the master:
	- Log into the master machine with ROS, source the setup.bash file
	- Run "export ROS_MASTER_URI=http://<IP address of this machine>:11311
	- Run "export ROS_IP=<IP address of this machine"
	- run "roscore"
	
	- Open a new terminal, source the setup.bash file
	- Create a ROS package using "roscreate-pkg hub_pr2 roscpp rospy std_msgs"
	- Run "rosmake hub_pr2"
	- Run "roscd hub_pr2"
	- Run "mkdir scripts"
	- Run "cd scripts"
	- Copy the file get_signal.py into this directory, make it execuateble by running "chmod +x get_signal.py"
	- Run "export ROS_MASTER_URI=http://<IP address of this machine>:11311
	- Run "export ROS_IP=<IP address of this machine"
	- Run "rosrun hub_pr2 get_signal.py"
	
2) Running the Raspberry Pi
	- Log into the Raspberry Pi as root using "sudo su"
	- Source the setup.bash file, for the Pi used for the lab, it should be "source ~/tri_ws/setup.bash"
	- Run "export ROS_MASTER_URI=http://<IP address of the master machine>:11311
	- Run "export ROS_IP=<IP address of the Pi"
	- The script signal_detector.py should already be in the package hub_pr2, so we only have to run "rosrun hub_pr2 signal_detector.py"

3) The pins used on the Pi that detects the signals from the sensors are: 5, 12, 13, 16, 20, 26
4) The usernames and password of the RPis are:
	- Pi 1:	username: pi
		password: hereshow
	- Pi 2: username: pi
		password: raspberry

About

Code for detecting signal from the sensors using Raspberry Pi and ROS

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

0