[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"detail-sidebar-cat-0-en-105":3,"doc-seo-693076-105":59,"doc-detail-693076-en":130,"doc-similar-693076":154},{"code":4,"msg":5,"data":6},0,"success",[7,13,18,23,28,33,38,43,48,51,55],{"id":8,"doc_module":4,"doc_module_name":9,"category_name":10,"show_sort_weight":11,"slug":12},1,"Document","Story & Novel",90,"story-novel",{"id":14,"doc_module":4,"doc_module_name":9,"category_name":15,"show_sort_weight":16,"slug":17},2,"Literature",80,"literature",{"id":19,"doc_module":4,"doc_module_name":9,"category_name":20,"show_sort_weight":21,"slug":22},4,"Exam",70,"exam",{"id":24,"doc_module":4,"doc_module_name":9,"category_name":25,"show_sort_weight":26,"slug":27},5,"Comic",60,"comic",{"id":29,"doc_module":4,"doc_module_name":9,"category_name":30,"show_sort_weight":31,"slug":32},6,"Technology",50,"technology",{"id":34,"doc_module":4,"doc_module_name":9,"category_name":35,"show_sort_weight":36,"slug":37},7,"Healthcare",40,"healthcare",{"id":39,"doc_module":4,"doc_module_name":9,"category_name":40,"show_sort_weight":41,"slug":42},8,"Research & Report",30,"research-report",{"id":44,"doc_module":4,"doc_module_name":9,"category_name":45,"show_sort_weight":46,"slug":47},9,"Religion & Spirituality",20,"religion-spirituality",{"id":46,"doc_module":4,"doc_module_name":9,"category_name":49,"show_sort_weight":46,"slug":50},"World Cup","world-cup",{"id":52,"doc_module":4,"doc_module_name":9,"category_name":53,"show_sort_weight":52,"slug":54},10,"Lifestyle","lifestyle",{"id":56,"doc_module":4,"doc_module_name":9,"category_name":57,"show_sort_weight":24,"slug":58},19,"General","general",{"code":4,"msg":60,"data":61},"ok",{"site_id":62,"language":63,"slug":64,"title":65,"keywords":66,"description":67,"schema_data":68,"social_meta":123,"head_meta":125,"extra_data":127,"updated_unix":129},105,"en","ros-c-style-guide-version-1-style-guide-instructions","ROS C++ STYLE GUIDE - Version 1 - style guide instructions","","This ROS C++ style guide defines coding conventions for writing C++ code within the Institute of Automation for the Robot Operating System. It builds on the Google C++ style guide and the official ROS style guide, highlighting departures in red. It specifies practical rules for autoformatting with clang-format, establishes naming schemes for packages, topics/services, files, libraries, classes/types, variables, constants, global variables, namespaces, and function/method naming, including recommended qualifiers and verb patterns.",{"@graph":69,"@context":122},[70,84,105],{"@type":71,"itemListElement":72},"BreadcrumbList",[73,77,79,82],{"item":74,"name":75,"@type":76,"position":8},"https://docshare.wps.com","Home","ListItem",{"item":78,"name":9,"@type":76,"position":14},"https://docshare.wps.com/document/",{"item":80,"name":30,"@type":76,"position":81},"https://docshare.wps.com/document/technology/",3,{"item":83,"name":65,"@type":76,"position":19},"https://docshare.wps.com/document/ros-c-style-guide-version-1-style-guide-instructions/693076/",{"url":83,"name":65,"@type":85,"image":86,"author":91,"headline":65,"publisher":94,"fileFormat":97,"inLanguage":63,"description":67,"dateModified":98,"datePublished":99,"encodingFormat":97,"isAccessibleForFree":100,"interactionStatistic":101},"DigitalDocument",{"url":87,"@type":88,"width":89,"height":90},"https://docshare.wps.com/thumbnails/ros-c-style-guide-version-1-style-guide-instructions/693076.png","ImageObject",300,407,{"name":92,"@type":93},"นรินทร์","Person",{"url":74,"name":95,"@type":96},"DocShare","Organization","application/pdf","2026-11-26","2026-11-09",true,{"@type":102,"interactionType":103,"userInteractionCount":19},"InteractionCounter",{"@type":104},"ViewAction",{"@type":106,"mainEntity":107},"FAQPage",[108,114,118],{"name":109,"@type":110,"acceptedAnswer":111},"What coding standards does this ROS C++ style guide follow?","Question",{"text":112,"@type":113},"It is based on the Google C++ style guide and the official ROS style guide, with differences highlighted in red.","Answer",{"name":115,"@type":110,"acceptedAnswer":116},"How should ROS code be autoformatted?",{"text":117,"@type":113},"Use clang-format via a robot/auto formatting script provided for this style guide.",{"name":119,"@type":110,"acceptedAnswer":120},"What naming scheme is recommended for ROS packages, topics/services, and files?",{"text":121,"@type":113},"Packages use under_scored names, topics and service names use under_scored, and files use under_scored with .cpp for source and .h for headers.","https://schema.org",{"og:url":83,"og:type":124,"og:title":65,"og:site_name":95,"og:description":67},"article",{"robots":126,"canonical":83},"index,follow",{"doc_id":128,"site_id":62},693076,1794248313,{"code":4,"msg":5,"data":131},{"doc_id":128,"user_id":132,"nickname":92,"user_avatar":133,"doc_module":4,"category_id":29,"category_name":30,"doc_title":65,"doc_description":67,"doc_content":134,"file_id":135,"file_url":136,"file_type":137,"file_size":138,"view_count":19,"is_deleted":4,"is_public":8,"is_downloadable":8,"audit_status":8,"page_count":139,"language":140,"language_code":63,"site_id":62,"html_lang":63,"table_of_contents":141,"faqs":142,"seo_title":143,"seo_description":67,"update_tm":129,"read_time":144,"preview_page_count":14,"preview_urls":145},2336475104957,"https://ap-avatar.wpscdn.com/avatar/22000c4c6bd8a5076e1?x-image-process=image/resize,m_fixed,w_180,h_180&k=1787554080175789136","Fakultät Elektrotechnik und Informationstechnik ● Institut für Automatisierungstechnik  \nROS C++ STYLE GUIDE  \nVersion 1.0, January 2018  \n1 Foreword  \nThis document defines a style guide to be followed in writing C++ code for Robot Operating System within the Institute of Automation. The style guide is based on the Google C++ style guide and official ROS style guide. The readers are encouraged to read Google C++ style guide as a fundamental. Changes from official ROS style guide are highlighted by red color. All new packages developed in the Institute of Automation should conform to this guide.  \n2 Autoformatting of ROS Code  \nWhy waste your valuable development time formatting code manually when we are trying to build amazing robots? Use a robot to format your code using \"clang-format\" . You can find an auto formatting script for this style guide here.  \n3 Naming  \nThe following shortcuts are used in this section to denote naming schemes:  \nCamelCased: The name starts with a capital letter, and has a capital letter for each new word, with no underscores.  \ncamelCased: Like CamelCase, but with a lower-case first letter  \nunder_scored: The name uses only lower-case letters, with words separated by underscores. (yes, I realize that under_scored should be underscored, because it's just one word) .  \nALL_CAPITALS: All capital letters, with words separated by underscores  \n3.1 Packages  \nROS packages are under_scored.  \nThis is not C++-specific, e.g.: youbot_gazebo.  \n3.2 Topics / Services  \nROS topics and service names are under_scored.  \nThis is not C++-specific, e.g.: /vel_cmd, /switch_off_motors.  \n3.3 Files  \nAll files are under_scored.  \nSource files have the extension .cpp while header files have the extension .h. For every .cpp file, there is a corresponding .h file with the same name. In general they take the module name, see Chapter 16.  \nBe descriptive, e.g., instead of laser.cpp, use hokuyo_topurg_laser.cpp.  \nIf the file primarily implements a class, name the file after the class. For example the class ActionServer would live in the file action_server.h.  \n3.4 Libraries  \nLibraries, being files, are under_scored.  \nDon't insert an underscore immediately after the lib prefix in the library name.  \nFakultät Elektrotechnik und Informationstechnik ● Institut für Automatisierungstechnik  \nE.g.:  \nlib_my_great_thing \\#\\# Bad libmy_great_thing \\#\\# Good  \n3.5 Classes / Types  \nClass names (and other type names) are CamelCased E.g.: class ExampleClass;  \nException: if the class name contains a short acronym, the acronym itself should be all capitals, e.g.: class HokuyoURGLaser;  \nName the class after what it is. If you can't think ofwhat it is, perhaps you have not thought through the design well enough. Compound names of over three words are a clue that your design may be unnecessarily confusing.  \nSee also: Google:Type Names  \n3.6 Variables  \nIn general, variable names consist only of nouns and adjectives. They are under_scored and begin with specified qualifier to identify the data type, e.g.: ui_voltage_level, f_max_acc. Possible qualifiers are listed in Table 3.1.  \nTable 3.2: Prefix for data type  \n\n| Data type | Qualifier of Data type |\n| --- | --- |\n| usigned char | uc |\n| signed char | sc |\n| char | c |\n| int | i |\n| unsigned int | ui |\n| unsigned long | ul |\n| long | l |\n| unsigned char * | puc |\n| signed char * | psc |\n| char * | pc |\n| unsigned long * | pul |\n| long * | pl |\n| fload | f |\n| double | d |\n| long double | ld |\n| float * | pf |\n| double* | pd |\n\nFakultät Elektrotechnik und Informationstechnik ● Institut für Automatisierungstechnik  \n\n| long double * | pld |\n| --- | --- |\n| struct * | ps |\n| function pointer | pfn |\n| void | v |\n\nBe reasonably descriptive and try not to be cryptic. Longer variable names don't take up more space in memory.  \nIntegral iterator variables can be defined without data type qualifier, such as i, j, k. i is always on the outer loop, jon the next inner loop and so on.  \nThe poi","cbCaiiDlw0SqmAXW","https://ap.wps.com/l/cbCaiiDlw0SqmAXW","pdf",270208,13,"English","# Foreword\n# Autoformatting of ROS Code\n# Naming\n## Packages\n## Topics / Services\n## Files\n## Libraries\n## Classes / Types\n## Variables\n## Constants\n## Global variables\n## Namespaces\n## Function / Methods","[{\"question\":\"What coding standards does this ROS C++ style guide follow?\",\"answer\":\"It is based on the Google C++ style guide and the official ROS style guide, with differences highlighted in red.\"},{\"question\":\"How should ROS code be autoformatted?\",\"answer\":\"Use clang-format via a robot/auto formatting script provided for this style guide.\"},{\"question\":\"What naming scheme is recommended for ROS packages, topics/services, and files?\",\"answer\":\"Packages use under_scored names, topics and service names use under_scored, and files use under_scored with .cpp for source and .h for headers.\"}]","ROS C++ STYLE GUIDE - Version 1 - style guide instructions | PDF",33,[146,150],{"page_no":8,"url":147,"width":148,"height":149},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-09/5e40389fd2dc8eaba65051170fb72e62.webp",983,1390,{"page_no":14,"url":151,"width":152,"height":153},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-09/1ab16a30b4956981f59c70e10bb512df.webp",982,1388,{"list":155,"token":66},[156,162,168,173,179,185,191,197,204,211],{"doc_id":157,"doc_title":158,"file_type":137,"home_preview_img_url":159,"slug":160,"view_count":19,"category_name":30,"create_tm":161},700988,"Java Code Conventions - 1997-09-12 - Copyright and code style guidelines","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230012045653/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796129219&Signature=%2B%2FsG6VkhVay1AyNIdwTIEpLZPcY%3D","java-code-conventions-1997-09-12-copyright-and-code-style-guidelines",1794522632,{"doc_id":163,"doc_title":164,"file_type":137,"home_preview_img_url":165,"slug":166,"view_count":29,"category_name":30,"create_tm":167},705083,"The C# Player’s Guide - Second Edition - Learning C# programming basics and advanced topics","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230014616002/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796129219&Signature=WQvK%2F28bKnjxFXo6a10qwS8y4FQ%3D","the-c-players-guide-second-edition-learning-c-programming-basics-and-advanced-topics",1794682974,{"doc_id":169,"doc_title":170,"file_type":137,"home_preview_img_url":171,"slug":172,"view_count":24,"category_name":30,"create_tm":167},705082,"The C# Player's Guide - read online free","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230015594599/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796129219&Signature=puN4k0l0der6WEbHoHn0P6I1KY4%3D","the-c-players-guide-read-online-free",{"doc_id":174,"doc_title":175,"file_type":137,"home_preview_img_url":176,"slug":177,"view_count":29,"category_name":30,"create_tm":178},672868,"Google's R Style Guide - Coding Style Rules","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229990161141/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796129219&Signature=gp%2FjnCg85PYmQgi%2FAuXcr2o%2FtBg%3D","googles-r-style-guide-coding-style-rules",1793611796,{"doc_id":180,"doc_title":181,"file_type":137,"home_preview_img_url":182,"slug":183,"view_count":19,"category_name":30,"create_tm":184},685664,"General C# Cheat Sheet - Quick reference guide","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230000173279/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796129219&Signature=3S72GUjqenEiUh1StS3Z2G2gtkI%3D","general-c-cheat-sheet-quick-reference-guide",1794016366,{"doc_id":186,"doc_title":187,"file_type":137,"home_preview_img_url":188,"slug":189,"view_count":52,"category_name":30,"create_tm":190},347402,"Programming in ANSIC - 1 Overview of C - Introduction","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229911021260/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796129219&Signature=MqvmIpala5AUqtLrN94rxrHQXvw%3D","programming-in-ansic-1-overview-of-c-introduction",1790066794,{"doc_id":192,"doc_title":193,"file_type":137,"home_preview_img_url":194,"slug":195,"view_count":39,"category_name":30,"create_tm":196},654083,"PLC Features Programing Manual - Instruction Manual First Edition ME0480-1A","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229974017909/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796129219&Signature=U6VX4LZzlNSrAVmBFtIqzQqDAfc%3D","plc-features-programing-manual-instruction-manual-first-edition-me0480-1a",1792907068,{"doc_id":198,"doc_title":199,"file_type":137,"home_preview_img_url":200,"slug":201,"view_count":202,"category_name":30,"create_tm":203},347394,"C Programming Language - 2nd Edition (OCR) - Chapter Outline","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229911501529/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796129219&Signature=DnvAsFxlyd8%2BgNftTjDLEDgpfMs%3D","c-programming-language-2nd-edition-ocr-chapter-outline",15,1790066766,{"doc_id":205,"doc_title":206,"file_type":137,"home_preview_img_url":207,"slug":208,"view_count":209,"category_name":30,"create_tm":210},347399,"C - Book 2nd - C Programming Language Guide","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229911501551/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796129219&Signature=SiNsKEJTqY%2B0dx25SGbS9z9ga%2BE%3D","c-book-2nd-c-programming-language-guide",18,1790066784,{"doc_id":212,"doc_title":213,"file_type":137,"home_preview_img_url":214,"slug":215,"view_count":216,"category_name":30,"create_tm":217},129246,"C++ Complete Manual - 50% off offer","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229840885439/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796129219&Signature=d9jrL0jHbQRWOffWorh9l6CEqYo%3D","c-complete-manual-50-off-offer",23,1786013758]