ENPM702 Overview¶
C++ Lectures¶
This document provides a concise overview of the material covered in ENPM702 (fall 2025).
Source code for all C++ lectures is available at
https://github.com/zeidk/enpm702-fall-2025Lecture 6 - Functions: Advanced Topics¶
Lecture 6 explores modern function-related features in C++, focusing on flexibility, safety, and performance. Students learn how C++ enables generic programming and compile-time computation through templates and modern specifiers.
See the full lecture here → L6 - Functions (Advanced Topics)
Core Concepts
Structs and Aggregates: Using C-style structs as lightweight data containers, including aggregate initialization and structured bindings.
Function Templates: Defining type-independent functions, template deduction, and specialization.
Modern Function Syntax: Using
decltype, trailing return types, and theconstexpr,inline, andnoexceptspecifiers.Attributes: Applying
[[nodiscard]],[[maybe_unused]], and[[deprecated]]to improve code safety and clarity.Callables: Understanding and using function pointers, functors, lambdas, and
std::functionfor flexible function invocation.
Lecture 7 - Move Semantics and Smart Pointers¶
Lecture 7 introduces efficient resource handling techniques through move semantics and smart pointers, two foundational concepts from C++11 that promote performance and memory safety.
See the full lecture here → L7 - Move Semantics and Smart Pointers
Core Concepts
Move Semantics: Transferring ownership of resources instead of copying, enabled by rvalue references (
&&) andstd::move.Smart Pointers: Managing dynamic memory automatically using classes from
<memory>. -std::unique_ptr- Exclusive ownership and move-only semantics. -std::shared_ptr- Shared ownership with reference counting. -std::weak_ptr- Non-owning observer used to prevent circular references.
Learning Outcome
Together, these lectures provide a deeper understanding of how modern C++ supports generic, safe, and efficient programming, preparing students to write expressive and resource-aware software.
ROS Lectures¶
ROS lectures are provided to show students how C++ can be applied to robotics systems.
Source code for all ROS lectures is available at
https://github.com/zeidk/enpm702-fall-2025-ROSLecture 10 - ROS Introduction¶
Lecture 10 introduces ROS 2 (Robot Operating System 2), a modern robotics middleware framework that enables developers to build distributed robotic systems through modular, reusable components. Students learn the fundamental architecture, core concepts, and practical development workflow for creating ROS 2 nodes and applications.
See the full lecture here → L10: ROS 2 (Introduction)
Core Concepts
ROS 2 Architecture: Understanding nodes as fundamental computation units, the DDS-based communication layer, and the distributed computation graph.
Communication Paradigms: Mastering the publish-subscribe pattern for continuous data streams, services for request-response interactions, and actions for long-running tasks.
Workspace Management: Organizing source code, build artifacts, and installed packages in structured workspaces with proper overlay configurations.
Package Development: Creating ROS 2 packages with proper manifest files (
package.xml), build configurations (CMakeLists.txt), and dependency management.Node Implementation: Writing both functional and object-oriented ROS 2 nodes in C++, understanding node lifecycle, spinning mechanisms, and callback processing.
Publishers and Subscribers: Implementing topic-based communication with configurable Quality of Service settings and proper message handling.