Giter Site home page Giter Site logo

ros-by-example's Introduction

PLEASE NOTE: This code is depreciated and will not be maintained or developed further.

This publication is now out of print and no longer available.

Code depreciated: this code will not be update for ROS Kinetic or later.

ros-by-example's People

Contributors

4ndr3ar avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

ros-by-example's Issues

pocketsphink installation problem.

Dear All,

I am using Ubuntu 10.04(lucid) and ROS electric. I want to install all required 
codes from rbx_vol_1. The first step is to install the additional ROS packages. 
This is fine and I can install them all correctly. But, I have a problem to 
install the pocketsphinx. Here is the trace: 

turtlebot@turtlebot-laptop:~/ros_workspace$ svn checkout 
http://albany-ros-pkg.googlecode.com/svn/trunk/rharmony
Checked out revision 311.

turtlebot@turtlebot-laptop:~/ros_workspace$ rosmake pocketsphinx
[ rosmake ] Packages requested are: ['pocketsphinx']                            

[ rosmake ] Logging to 
directory/home/turtlebot/.ros/rosmake/rosmake_output-20121015-120546            

[ rosmake ] Expanded args ['pocketsphinx'] to:
[]                                                                        
[ rosmake ] WARNING: The following args could not be parsed as stacks or 
packages: ['pocketsphinx']                      
[ rosmake ] ERROR: No arguments could be parsed into valid package or stack 
names.    

Do you have any solution to this problem.

Thanks.

best wishes
Azizia.

Original issue reported on code.google.com by [email protected] on 15 Oct 2012 at 4:16

can not install the ROS-BY-EXAMPLE CODE

What steps will reproduce the problem?
1. following the 5.1 Installing the Prerequisites

2.copy and paste the commands in the terminal:

sudo apt-get install \
ros-electric-turtlebot* \
ros-electric-control \
ros-electric-openni-kinect \
ros-electric-laser-drivers \
ros-electric-audio-common \
ros-electric-sound-drivers \
ros-electric-joystick-drivers \
ros-electric-orocos-kinematics-dynamics \
ros-electric-dynamixel-motor \
gstreamer0.10-pocketsphinx \
python-setuptools \
libopencv2*


3.
just got the the feedback saying:

Reading package lists... Done
Building dependency tree       
Reading state information... Done
Note, selecting 'libopencv-dev' for regex 'libopencv2*'
Note, selecting 'libopencv-doc' for regex 'libopencv2*'
Note, selecting 'libopencv2.3' for regex 'libopencv2*'
Note, selecting 'libopencv2.3-bin' for regex 'libopencv2*'
Note, selecting 'libopencv2.3-dev' for regex 'libopencv2*'
E: Unable to locate package ros-electric-turtlebot*
E: Couldn't find any package by regex 'ros-electric-turtlebot*'
E: Unable to locate package ros-electric-dynamixel-motor


What is the expected output? What do you see instead?
the expected output should be install all the packages

What version of the product are you using? On what operating system?
im using Ubuntu 11.10 and ROS electric(as recommend by the author)

Please provide any additional information below.
N/A

Original issue reported on code.google.com by [email protected] on 19 Sep 2012 at 7:55

Stuck at "waiting for image topics..."

I am using on ubuntu 16.04 with ROS kinetic..
I did all the changes required to run on CV2, still getting stuck at the end..in rosrun sample_opencv_pkgn cv_bridge_demo.py
[INFO] [1518146850.931233]: Waiting for image topics...
any Ideas why??

Converting from electric to fuerte and then to groovy fails

What steps will reproduce the problem?
1. bspatch ros_by_example___volume_1.pdf ros_by_example___volume_1_fuerte.pdf 
electric2fuerte.diff
2.bspatch ros_by_example___volume_1_fuerte.pdf 
ros_by_example___volume_1_groovy.pdf fuerte2groovy.diff
3.evince ros_by_example___volume_1_groovy.pdf 

What is the expected output? What do you see instead?
I see multiple errors in the form of:
Error (287): Dictionary key must be a name object
...
Error (311): Dictionary key must be a name object
Error (143696): Illegal character '{'
...
Error (144924): Illegal character <2b> in hex string
...
Error: PDF file is damaged - attempting to reconstruct xref table...
Error: Invalid 'obj' parameters
Error: Couldn't read xref table

What version of the product are you using? On what operating system?
bsdiff 4.30-10
ubuntu 12.04 64 bit

Please provide any additional information below.

Original issue reported on code.google.com by [email protected] on 8 Apr 2013 at 4:39

RBX2 Hydro to Indigo: redundant URL on p.30

When converting RBX2 book from Hydro to Indigo, a codeblock with redundant URL appears on p. 30:

def transition_cb(self, userdata, active_states, *cb_args):
if self.rand.randint(0, 3) == 0:
rospy.loginfo("Greetings human!")http://www.projectorcentral.com/BenQ-
MX522-projection-calculator-pro.htm

Note the http://www.projectorcentral.com/BenQ- MX522-projection-calculator-pro.htm

openni-tracker for hyro does not work as suggested in the book

What steps will reproduce the problem?
1.Chapter 5 page 29 from the book ros by examples for hydro
2.sudo apt-get install ros-hydro-openni-tracker
3.This does not work... Insalling the rest of the packages work well.

What is the expected output? What do you see instead?
Expect to see the openni-tracker installed instead

Reading package lists... Done
Building dependency tree       
Reading state information... Done
E: Unable to locate package ros-hydro-openni-tracker


What version of the product are you using? On what operating system?
hydro and ubuntu 13.04




Original issue reported on code.google.com by [email protected] on 4 Feb 2014 at 12:28

Can I use ros kinetic ??

I am getting the following error with ros kinetic when I run roslaunch rbx1_vision uvc_cam.launch device:=/dev/video0 any help please ???

abdulrahman@abdulrahman-ThinkPad-X230-Tablet:~$ roslaunch rbx1_vision uvc_cam.launch device:=/dev/video0
... logging to /home/abdulrahman/.ros/log/dbcc5e62-ade6-11e7-ae13-e09d31097f54/roslaunch-abdulrahman-ThinkPad-X230-Tablet-10373.log
Checking log directory for disk usage. This may take awhile.
Press Ctrl-C to interrupt
Done checking log file disk usage. Usage is <1GB.

started roslaunch server http://abdulrahman-ThinkPad-X230-Tablet:34377/

SUMMARY
========

PARAMETERS
 * /rosdistro: kinetic
 * /rosversion: 1.12.7
 * /uvc_cam_node/device: /dev/video0
 * /uvc_cam_node/exposure: 0
 * /uvc_cam_node/frame_rate: 20
 * /uvc_cam_node/gain: 100
 * /uvc_cam_node/height: 240
 * /uvc_cam_node/width: 320

NODES
  /
    uvc_cam_node (uvc_cam/uvc_cam_node)

auto-starting new master
process[master]: started with pid [10384]
ROS_MASTER_URI=http://localhost:11311

setting /run_id to dbcc5e62-ade6-11e7-ae13-e09d31097f54
process[rosout-1]: started with pid [10397]
started core service [/rosout]
ERROR: cannot launch node of type [uvc_cam/uvc_cam_node]: uvc_cam
ROS path [0]=/opt/ros/kinetic/share/ros
ROS path [1]=/home/abdulrahman/catkin_ws/src
ROS path [2]=/opt/ros/kinetic/share


Problem viewing images using opencv

I have trouble viewing color images from R200 realsense camera using the python-opencv interface.
The window is blank when I run this script.
When I comment out'cv2.namedWindow("Image window", 1)', it shows the first image.

-P

import roslib
import sys
import rospy
import cv2
from std_msgs.msg import String
from geometry_msgs.msg import Twist
from sensor_msgs.msg import Image
from rospy.numpy_msg import numpy_msg
#from rospy_tutorials.msg import Floats
from cv_bridge import CvBridge, CvBridgeError
import numpy as np
import math;
import cv2;
#import matplotlib.pyplot as plt;
import sys;
#import caffe;
import socket;
#from sklearn import datasets;
import subprocess;

import message_filters
from rospy.numpy_msg import numpy_msg
import time
#####################

import os.path

class image_converter:

Initializing variables, publishers and subscribers

def init(self):
print 'show window'
cv2.namedWindow("Image window", 1)

print 'start bridge and subscribe'

self.bridge = CvBridge()

self.image_sub = rospy.Subscriber("/camera/rgb/image_color", Image, self.callback)

The main callback that processes the color and depth data.

def callback(self,color):

start = time.time()
# acquiring color and depth data (from ROS-python tutorial)
try:
  
  frame = self.bridge.imgmsg_to_cv2(color, "bgr8")
except CvBridgeError, e:
  print e
  
frame = np.array(frame, dtype=np.uint8)

cv2.imshow("Image window", frame)
print 'test'
cv2.waitKey(0)

def main(args):
ic = image_converter()
rospy.init_node('image_converter', anonymous=True)
try:
rospy.spin()
except KeyboardInterrupt:
print "Shutting down"
cv2.destroyAllWindows()

if name == 'main':
main(sys.argv)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.