background preloader

Programming stuff

Facebook Twitter

Rosserial_arduino/Tutorials. See also rosserial/Overview. Arduino IDE SetupThis tutorial shows step-by-step how to setup up the Arduino IDE to use rosserial. Hello World (example publisher)This tutorial shows step by step how to create a publisher using rosserial. Blink (example subscriber)This tutorial shows step by step how to use rosserial with subscribers. Using Time and TFThis tutorial shows how to use ros::Time and TF to create a tf publisher on the Arduino. Temperature SensorMeasuring Temperature using the TMP102 Push ButtonMonitor a push button and publish its state in ROS CMake with rosserial_arduinoThis tutorial shows how to use the CMake build system with rosserial_arduino.

Servo Controller ExampleTutorial for controlling an R/C servo with rosserial and an Arduino IR Ranger TutorialUsing an IR Ranger with rosserial and an Arduino SRF08 Ultrasonic RangerIn this tutorial, we will use an Arduino and a SRF08 Ultrasonic Ranger as a Range Finder.The SRF08 communicates with an Arduino over SPI/I2C. Geometry_msgs. Std_msgs. Electric: Documentation generated on March 02, 2013 at 01:22 PMfuerte: Documentation generated on January 02, 2014 at 12:06 PMgroovy: Documentation generated on October 06, 2014 at 07:51 AMhydro: Documentation generated on August 26, 2015 at 04:28 PM (doc job).indigo: Documentation generated on March 13, 2016 at 11:10 AM (doc job).jade: Documentation generated on March 13, 2016 at 10:52 AM (doc job).kinetic: Documentation generated on March 13, 2016 at 10:48 AM (doc job). std_msgs Documented std_msgs contains common message types representing primitive data types and other basic message constructs, such as multiarrays.

For common, generic robot-specific message types, please see common_msgs. Author: Morgan Quigley/mquigley@cs.stanford.edu, Ken Conley/kwc@willowgarage.com, Jeremy Leibs/leibs@willowgarage.comLicense: BSDSource: git (branch: fuerte-devel) Released Continuous integration Documented Overview ROS Message Types Roadmap. Is aptitude still considered superior to apt-get? How to Install JAVA 8 (JDK 8u45) on Linux Systems. Java is a collection of software better known for it’s cross platform availability was developed by Sun Microsystems in 1995.

Java platform is used by millions of applications and websites (specially used in banking sites) due to its fast, secure and reliable nature. Today, Java is everywhere, from desktops to data-centers, game consoles to scientific computers, mobile phones to the Internet, etc… There are more than one version of Java can be installed and running on same computer and also it’s possible to have different version of JDK and JRE simultaneously on a machine, actually there are abundant of applications that requires Java-jre (Java Runtime Environment) and those who are developer required Java-sdk (Software Development Kit). A lots of Linux distribution comes with other version of Java called OpenJDK (not the one developed by Sun Microsystems and acquired by Oracle Corporation). OpenJDK is an open source implementation of Java application. Install Java 8 in Linux 1. 2. 3. 4. C++, Short and Sweet, Part 1 by Jeremy Siek.

Free C++ Online Courses. C9 Lectures: Stephan T. Lavavej - Core C++ Step By Step guide to Read XML file in Java Using SAX Parser Example. Java SAX Parser Example Tutorial to parse XML to List of Objects. Java SAX Parser provides API to parse XML documents. SAX Parsers are different than DOM parser because it doesn’t load complete XML into memory and read xml document sequentially. javax.xml.parsers.SAXParser provides method to parse XML document using event handlers.

This class implements XMLReader interface and provides overloaded versions of parse() methods to read XML document from File, InputStream, SAX InputSource and String URI. The actual parsing is done by the Handler class and we need to create our own handler class to parse the XML document. We need to implement org.xml.sax.ContentHandler interface to create our own handler classes. Org.xml.sax.helpers.DefaultHandler provides default implementation of ContentHandler interface and we can extend this class to create our own handler. Let’s jump to the program now, I will explain different features in detail later on. We will use SAX Parser to parse this XML and create list of Employee object. Here is the output of the above program. How to read XML file in Java – (DOM Parser) In this tutorial, we will show you how to read an XML file via DOM XML parser. DOM parser parses the entire XML document and loads it into memory; then models it in a “TREE” structure for easy traversal or manipulation.

In short, it turns a XML file into DOM or Tree structure, and you have to traverse a node by node to get what you want. What is Node? In the DOM, everything in an XML document is a node, read this. Warning DOM Parser is slow and consumes a lot of memory when it loads an XML document which contains a lot of data. 1. This example shows you how to get the node by “name”, and display the value.

/Users/mkyong/staff.xml <? ReadXMLFile.java Result Root element :company ---------------------------- Current Element :staff Staff id : 1001 First Name : yong Last Name : mook kim Nick Name : mkyong Salary : 100000 Current Element :staff Staff id : 2001 First Name : low Last Name : yin fong Nick Name : fong fong Salary : 200000 2. ReadXMLFile2.java Result : References. Java and JavaScript Programming, by Richard G Baldwin.

Search Results. How to be a Programmer: A Short, Comprehensive, and Personal Summary. Debugging is the cornerstone of being a programmer. The first meaning of the verb to debug is to remove errors, but the meaning that really matters is to see into the execution of a program by examining it. A programmer that cannot debug effectively is blind. Idealists that think design, or analysis, or complexity theory, or whatnot, are more fundamental are not working programmers. The working programmer does not live in an ideal world. Even if you are perfect, your are surrounded by and must interact with code written by major software companies, organizations like GNU, and your colleagues.

Debugging is about the running of programs, not programs themselves. To get visibility into the execution of a program you must be able to execute the code and observe something about it. The common ways of looking into the ‘innards’ of an executing program can be categorized as: Some beginners fear debugging when it requires modifying code. How to Debug by Splitting the Problem Space. How to be a good programmer...My tips (Sandip Dev's blog) This article has been cross posted from my personal blog : At the very onset, let me make it clear that I DO NOT consider myself a good programmer. I rate my coding skills as average and I am still learning and have a long way to go before I am even slightly pleased with my programming skills. Yes I am better than quite a few people when it comes to programming, but thats merely because they are lazy and like to sit on idly all day and never bother about programming. Their horrible skills make my less horrible skills look marvellous.

I have performed abysmally in ICPC and have never done well in any coding contest worth mentioning (I DO NOT consider college level contests worth mentioning). I havent succeeded yet in Google Summer of Code and my Imagine Cup moderate success (and glorious failure) isn't much to write home about. 2. Some people suggest Python as the first language to be learnt. ]search and find out who Peter Norvig is. 3. 4. 5. 6 Ways to Become a Programmer. 10 steps to becoming a better programmer | Wildbunny blog. Hi and welcome back to my blog! I wanted to cover 10 of the things I’ve learned over the years being a professional programmer that really helped me improve the quality of my code and my overall productivity. 1. Never ever duplicate code Avoid duplicating code at all costs. If you have a common code segment used in a few different places, refactor it out into its own function. Code duplication causes confusion among your colleagues reading your code, it causes bugs down the line when the duplicated segment is fixed in one location and not the others and it bloats the size of your code-base and executable.

With modern languages its become possible to get really good at this, for example here is a pattern that used to be hard to solve before delegates and lambdas came along: But now we can refactor the shared part of both functions and rewrite using a delegate: 2. 3. 4. You know what your code is supposed to do, and you’ve likely tested that it works, but you really need to prove it. 5. 6. Icon search engine and market place | Iconfinder. Welcome to JavaWorld.com.

Introduction to "Design Techniques" At last year's JavaOne conference, I attended a session in which the speaker talked about Sun's plan for the Java virtual machine (JVM). In this talk, the speaker stated that Sun planned, among other things, to clear up current performance bottlenecks in its virtual machine, such as the slowness of synchronized methods and the performance costs of garbage collection. The speaker stated Sun's goal: With the improvements to the JVM, programmers would not need to think about avoiding virtual machine bottlenecks when they designed their programs; they would only need to think of creating "good object-oriented, thread-safe designs.

" The speaker did not, however, elaborate on what actually constitutes a good object-oriented, thread-safe design. That is the aim of this new column. Through the articles of the Design Techniques column, I hope to answer the question: What is a good Java program design, and how do you create one? The column's focus This month: Process described, "design" defined. Introductory Guide to martinfowler.com. Introductory Guide to martinfowler.com.