background preloader

Programming stuff

Facebook Twitter

Rosserial_arduino/Tutorials. See also rosserial/Overview.

rosserial_arduino/Tutorials

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. 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

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.

How to Install JAVA 8 (JDK 8u45) on Linux Systems

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). 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.

Java SAX Parser Example Tutorial to parse XML to List of Objects

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.

How to read XML file in Java – (DOM 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. 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.

How to be a Programmer: A Short, Comprehensive, and Personal Summary

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 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.

How to be a good programmer...My tips (Sandip Dev's blog)

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). So most of the tips I will mention below are lessons learnt from failed endeavours, they are what I have wanted to be and I am not. 1.Decide why you want to become a good programmer: Is it because you want a job, preferably in a high paying software firm?

2. ]search and find out who Peter Norvig is. 6 Ways to Become a Programmer. 10 steps to becoming a better programmer. Hi and welcome back to my blog!

10 steps to becoming a better programmer

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.

But now we can refactor the shared part of both functions and rewrite using a delegate: Icon search engine and market place. 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).

Introduction to "Design Techniques"

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.

Introductory Guide to martinfowler.com. Introductory Guide to martinfowler.com.