Difference between revisions of "ROS Raspberry Pi Demo"

From wikidb
Jump to: navigation, search
(References)
 
(13 intermediate revisions by the same user not shown)
Line 1: Line 1:
 
= References =
 
= References =
  
+ Raspberry Pi 3 Ubuntu Mate Xenial 16.04 with ROS Kinetic [http://www.german-robot.com/2016/05/26/raspberry-pi-sd-card-image/ image]
+
*  [http://www.german-robot.com/2016/05/26/raspberry-pi-sd-card-image/ Raspberry Pi 3 Ubuntu Mate Xenial 16.04 with ROS Kinetic image]
 +
[https://github.com/matpalm/ros-motorhat-node ROS motor controller node for Adafruit motor HAT IE 2348]
 +
*  [https://www.adafruit.com/product/2348 Adafruit motor HAT specs]
 +
*  [https://learn.adafruit.com/adafruit-dc-and-stepper-motor-hat-for-raspberry-pi Adafruit motor HAT documentation]
 +
*  [https://learn.adafruit.com/adafruits-raspberry-pi-lesson-4-gpio-setup/configuring-i2c Adafruit configuring I2C on Raspberry Pi]
 +
*  [http://wiki.ros.org/ROS/Tutorials ROS Tutorials]
 +
*  [http://www.robopgmr.com/?p=4281 tf]
  
ROS motor controller node for Adafruit motor HAT IE 2348
+
= Execution =
  https://github.com/matpalm/ros-motorhat-node
+
  
Adafruit motor HAT specs
+
Demo the ROS installation.
  https://www.adafruit.com/product/2348
+
  
Adafruit motor HAT documentation
+
terminal 1
  https://learn.adafruit.com/adafruit-dc-and-stepper-motor-hat-for-raspberry-pi
+
  
Adafruit configuring I2C on Raspberry Pi
+
   roscore
   https://learn.adafruit.com/adafruits-raspberry-pi-lesson-4-gpio-setup/configuring-i2c
+
  
ROS Tutorials
+
terminal 2
  http://wiki.ros.org/ROS/Tutorials
+
  
 +
  cd catkin_ws/
 +
  source devel/setup.bash
 +
  rosrun motor_hat motor_hat_node
  
= References =
+
terminal 3
  
* [http://wiki.ros.org/ROSberryPi/Installing%20ROS%20Indigo%20on%20Raspberry%20Pi ROS on Raspberry Pi]
+
  rosnode list
* [http://www.robopgmr.com/?p=4281 tf]
+
  rostopic list
 +
  rostopic echo cmd
 +
 
 +
terminal 4
 +
 
 +
  cd catkin_ws/
 +
  source devel/setup.bash
 +
  rosrun motor_hat stop.py
 +
  rosrun motor_hat on.py
 +
 
 +
TBD - QUESTION - Why isn't the message often not received by the motor_hat_node?
 +
 
 +
= Code Inspection =
 +
 
 +
The next line can be added to ~/.bashrc.
 +
  source ~/catkin_ws/devel/setup.bash
 +
 
 +
  roscd hat_node
 +
  pwd
 +
  cd src
 +
  ls
 +
 
 +
Look at the code
 +
 
 +
  emacs on.py&
 +
  emacs motor_hat_node_cpp&
 +
 
 +
If emacs isn't installed use nano.
 +
 
 +
  nano on.py

Latest revision as of 20:20, 24 February 2017

References

Execution

Demo the ROS installation.

terminal 1

 roscore

terminal 2

 cd catkin_ws/
 source devel/setup.bash 
 rosrun motor_hat motor_hat_node 

terminal 3

 rosnode list
 rostopic list
 rostopic echo cmd

terminal 4

 cd catkin_ws/
 source devel/setup.bash
 rosrun motor_hat stop.py 
 rosrun motor_hat on.py 

TBD - QUESTION - Why isn't the message often not received by the motor_hat_node?

Code Inspection

The next line can be added to ~/.bashrc.

 source ~/catkin_ws/devel/setup.bash
 
 roscd hat_node
 pwd
 cd src
 ls

Look at the code

 emacs on.py&
 emacs motor_hat_node_cpp&

If emacs isn't installed use nano.

 nano on.py