No version for distro humble showing melodic. Known supported distros are highlighted in the buttons above.

Package Summary

Version 0.8.5
License LGPLv3
Build type CATKIN
Use RECOMMENDED

Repository Summary

Description
Checkout URI https://github.com/ros-industrial/ros_canopen.git
VCS Type git
VCS Version melodic-devel
Last Updated 2026-11-18
Dev Status DEVELOPED
Released RELEASED
Contributing Help Wanted (-)
Good First Issues (-)
Pull Requests to Review (-)

Package Description

CiA(r) CANopen 301 master implementation with support for interprocess master synchronisation.

Additional Links

Maintainers

  • Mathias Lüdtke

Authors

  • Mathias Lüdtke

Overview

This packages contains a master implementation of the CANopen DS 301 protocol. It provides libraries to connect to CANopen devices and access their data objects via high-level interfaces.

Features

This implementation provides support for many CANopen interfaces and services:

  • High-level object dictionary for all simple types, except booleans (1bit)
  • EDS/DCF parser
  • Automatic configuration based on communication objects
  • Full SDO client implementation
  • PDO subscriber/publisher for different transmission types
  • EMCY handling with diagnostics interfaces
  • NMT with heartbeat (client), without node-guarding
  • Plug-in system for bus synchronization and the SYNC objects

CANopen basics

Node ID

Each device is assigned a node ID in range between 1 and 127. It determines the CAN frame the device and listens to, so it must be unique (per bus).

Object dictionary

All data is stored as objects, which are adressed with 4-digit hexadecimal numbers and an optional hexadecimal 8-bit sub index. The object types range from simple integer values to complex structs and arrays.

The object dictionary contains all objects (data + types) and is structured based on the index, notable ranges are:

  • 1000-1FFF: Communication objects
  • 2000-5FFF: Manufacturer-specific objects
  • 6000-6FFF: Profile-specific objects (for first logical device)

Network management (NMT)

The network management includes a state machine for the overall status(pre-operational, operation, stopped) of the devices and service to control the states. Further it can be used to monitor the devices.

Service data objects (SDOs)

Client/server interface for reading and writing objects. SDO cannot be used with stopped devices.

Process data objects (PDOs)

Publisher/subscriber interface for reading and writing objects. Limited to 8 bytes per PDO, can contain multiple (simple) objects. Not all objects can be mapped to PDOS, this depends on the object and the device. PDOs are available in the operational state only.

Synchronization object (SYNC)

Periodically object sent by the master to synchronize the devices of one bus. PDOs might be set-up to be synchronous (recommended for ros_canopen).

Emergency objects (EMCY)

The nodes send these objects on critical errors. The standard lists a wide range of errors code, profile can have additional codes.

EDS/DCF files

The electronic data sheet and the device configuration files are standardized in CiA 306 DS. These are INI files that contain all objects descriptions. The new XML based XDD is currently not supported.

The EDS just contains the defaults, the DCF can include specific parameter values, however canopen_master treats both alike. All entries that have parameter values different from the defaults are written to the device at initialization. PDO objects have additional restrictions and are handled separately.

All manufactures should provide EDS or DCF files. The editor Vector CANeds 3.6 is available freely and plays well with wine. The 3.7 version is free as well, but bundled to the demos version of the big CAN software suites. However, it can extract the object dictionary from any CANopen device.

Master plug-ins

Each CANopen bus shall have up to one master that is responsible for the synchronization. The driver has preliminary support for inter-process communitcation which should allow to run two driver instances on one bus. This implementation is currently not ready for production use however.

For now 2 different implementations exist with allocator plug-ins:

File truncated at 100 lines see the full file

CHANGELOG

Changelog for package canopen_master

0.8.5 (2020-09-22)

0.8.4 (2020-08-22)

  • added settings parameter to DriverInterface::init
  • moved canopen::Settings into can namespace
  • Contributors: Mathias Lüdtke

0.8.3 (2020-05-07)

  • Bump CMake version to avoid CMP0048 warning Signed-off-by: ahcorde <<ahcorde@gmail.com>>
  • Contributors: ahcorde

0.8.2 (2019-11-04)

  • implemented LayerStatus::equals<>()
  • added support for SYNC counter in SimpleSyncLayer (#349)
  • enable rosconsole_bridge bindings
  • switch to new logging macros
  • add logging based on console_bridge
  • removed implicit Header operator
  • Contributors: Mathias Lüdtke

0.8.1 (2019-07-14)

  • Set C++ standard to c++14
  • added Delegate helpers for backwards compatibility
  • implemented create*ListenerM helpers
  • Replacing FastDelegate with std::function and std::bind.
  • Contributors: Harsh Deshpande, Joshua Whitley, Mathias Lüdtke

0.8.0 (2018-07-11)

  • migrated to std::function and std::bind
  • migrated to std::atomic
  • got rid of boost::noncopyable
  • replaced BOOST_FOREACH
  • migrated to std::unordered_map and std::unordered_set
  • migrated to std pointers
  • provided KeyHash for use with unordered containers
  • added c_array access functons to can::Frame
  • Contributors: Mathias Lüdtke

0.7.8 (2018-05-04)

  • Revert "pull make_shared into namespaces" This reverts commit 9b2cd05df76d223647ca81917d289ca6330cdee6.
  • Contributors: Mathias Lüdtke

0.7.7 (2018-05-04)

  • added types for all function objects
  • pull make_shared into namespaces
  • added types for all shared_ptrs
  • migrate to new classloader headers
  • throw bad_cast if datatype is not supported
  • special handling of std::bad_cast
  • address catkin_lint errors/warnings
  • removed IPC/SHM based sync masters
  • Contributors: Mathias Lüdtke

0.7.6 (2017-08-30)

0.7.5 (2017-05-29)

  • added EMCYHandler::resetErrors
  • added VectorHelper::callFunc generalized call templates
  • Contributors: Mathias Lüdtke

0.7.4 (2017-04-25)

0.7.3 (2017-04-25)

  • enforce boost::chrono-based timer
  • Contributors: Mathias Lüdtke

0.7.2 (2017-03-28)

  • fix: handle EMCY as error, not as warning
  • Contributors: Mathias Lüdtke

0.7.1 (2017-03-20)

  • refactored EMCY handling into separate layer
  • print EMCY to stdout
  • send node start on recover needed for external sync to work properly
  • pass halt on error unconditionally
  • added canopen_bcm_sync
  • implemented ExternalMaster
  • added object access services
  • implemented ObjectStorage::getStringReader
  • Contributors: Mathias Lüdtke

0.7.0 (2016-12-13)

0.6.5 (2016-12-10)

File truncated at 100 lines see the full file

Launch files

No launch files found

Messages

No message files found.

Services

No service files found

Plugins

Recent questions tagged canopen_master at Robotics Stack Exchange

No version for distro jazzy showing melodic. Known supported distros are highlighted in the buttons above.

Package Summary

Version 0.8.5
License LGPLv3
Build type CATKIN
Use RECOMMENDED

Repository Summary

Description
Checkout URI https://github.com/ros-industrial/ros_canopen.git
VCS Type git
VCS Version melodic-devel
Last Updated 2026-11-18
Dev Status DEVELOPED
Released RELEASED
Contributing Help Wanted (-)
Good First Issues (-)
Pull Requests to Review (-)

Package Description

CiA(r) CANopen 301 master implementation with support for interprocess master synchronisation.

Additional Links

Maintainers

  • Mathias Lüdtke

Authors

  • Mathias Lüdtke

Overview

This packages contains a master implementation of the CANopen DS 301 protocol. It provides libraries to connect to CANopen devices and access their data objects via high-level interfaces.

Features

This implementation provides support for many CANopen interfaces and services:

  • High-level object dictionary for all simple types, except booleans (1bit)
  • EDS/DCF parser
  • Automatic configuration based on communication objects
  • Full SDO client implementation
  • PDO subscriber/publisher for different transmission types
  • EMCY handling with diagnostics interfaces
  • NMT with heartbeat (client), without node-guarding
  • Plug-in system for bus synchronization and the SYNC objects

CANopen basics

Node ID

Each device is assigned a node ID in range between 1 and 127. It determines the CAN frame the device and listens to, so it must be unique (per bus).

Object dictionary

All data is stored as objects, which are adressed with 4-digit hexadecimal numbers and an optional hexadecimal 8-bit sub index. The object types range from simple integer values to complex structs and arrays.

The object dictionary contains all objects (data + types) and is structured based on the index, notable ranges are:

  • 1000-1FFF: Communication objects
  • 2000-5FFF: Manufacturer-specific objects
  • 6000-6FFF: Profile-specific objects (for first logical device)

Network management (NMT)

The network management includes a state machine for the overall status(pre-operational, operation, stopped) of the devices and service to control the states. Further it can be used to monitor the devices.

Service data objects (SDOs)

Client/server interface for reading and writing objects. SDO cannot be used with stopped devices.

Process data objects (PDOs)

Publisher/subscriber interface for reading and writing objects. Limited to 8 bytes per PDO, can contain multiple (simple) objects. Not all objects can be mapped to PDOS, this depends on the object and the device. PDOs are available in the operational state only.

Synchronization object (SYNC)

Periodically object sent by the master to synchronize the devices of one bus. PDOs might be set-up to be synchronous (recommended for ros_canopen).

Emergency objects (EMCY)

The nodes send these objects on critical errors. The standard lists a wide range of errors code, profile can have additional codes.

EDS/DCF files

The electronic data sheet and the device configuration files are standardized in CiA 306 DS. These are INI files that contain all objects descriptions. The new XML based XDD is currently not supported.

The EDS just contains the defaults, the DCF can include specific parameter values, however canopen_master treats both alike. All entries that have parameter values different from the defaults are written to the device at initialization. PDO objects have additional restrictions and are handled separately.

All manufactures should provide EDS or DCF files. The editor Vector CANeds 3.6 is available freely and plays well with wine. The 3.7 version is free as well, but bundled to the demos version of the big CAN software suites. However, it can extract the object dictionary from any CANopen device.

Master plug-ins

Each CANopen bus shall have up to one master that is responsible for the synchronization. The driver has preliminary support for inter-process communitcation which should allow to run two driver instances on one bus. This implementation is currently not ready for production use however.

For now 2 different implementations exist with allocator plug-ins:

File truncated at 100 lines see the full file

CHANGELOG

Changelog for package canopen_master

0.8.5 (2020-09-22)

0.8.4 (2020-08-22)

  • added settings parameter to DriverInterface::init
  • moved canopen::Settings into can namespace
  • Contributors: Mathias Lüdtke

0.8.3 (2020-05-07)

  • Bump CMake version to avoid CMP0048 warning Signed-off-by: ahcorde <<ahcorde@gmail.com>>
  • Contributors: ahcorde

0.8.2 (2019-11-04)

  • implemented LayerStatus::equals<>()
  • added support for SYNC counter in SimpleSyncLayer (#349)
  • enable rosconsole_bridge bindings
  • switch to new logging macros
  • add logging based on console_bridge
  • removed implicit Header operator
  • Contributors: Mathias Lüdtke

0.8.1 (2019-07-14)

  • Set C++ standard to c++14
  • added Delegate helpers for backwards compatibility
  • implemented create*ListenerM helpers
  • Replacing FastDelegate with std::function and std::bind.
  • Contributors: Harsh Deshpande, Joshua Whitley, Mathias Lüdtke

0.8.0 (2018-07-11)

  • migrated to std::function and std::bind
  • migrated to std::atomic
  • got rid of boost::noncopyable
  • replaced BOOST_FOREACH
  • migrated to std::unordered_map and std::unordered_set
  • migrated to std pointers
  • provided KeyHash for use with unordered containers
  • added c_array access functons to can::Frame
  • Contributors: Mathias Lüdtke

0.7.8 (2018-05-04)

  • Revert "pull make_shared into namespaces" This reverts commit 9b2cd05df76d223647ca81917d289ca6330cdee6.
  • Contributors: Mathias Lüdtke

0.7.7 (2018-05-04)

  • added types for all function objects
  • pull make_shared into namespaces
  • added types for all shared_ptrs
  • migrate to new classloader headers
  • throw bad_cast if datatype is not supported
  • special handling of std::bad_cast
  • address catkin_lint errors/warnings
  • removed IPC/SHM based sync masters
  • Contributors: Mathias Lüdtke

0.7.6 (2017-08-30)

0.7.5 (2017-05-29)

  • added EMCYHandler::resetErrors
  • added VectorHelper::callFunc generalized call templates
  • Contributors: Mathias Lüdtke

0.7.4 (2017-04-25)

0.7.3 (2017-04-25)

  • enforce boost::chrono-based timer
  • Contributors: Mathias Lüdtke

0.7.2 (2017-03-28)

  • fix: handle EMCY as error, not as warning
  • Contributors: Mathias Lüdtke

0.7.1 (2017-03-20)

  • refactored EMCY handling into separate layer
  • print EMCY to stdout
  • send node start on recover needed for external sync to work properly
  • pass halt on error unconditionally
  • added canopen_bcm_sync
  • implemented ExternalMaster
  • added object access services
  • implemented ObjectStorage::getStringReader
  • Contributors: Mathias Lüdtke

0.7.0 (2016-12-13)

0.6.5 (2016-12-10)

File truncated at 100 lines see the full file

Launch files

No launch files found

Messages

No message files found.

Services

No service files found

Plugins

Recent questions tagged canopen_master at Robotics Stack Exchange

No version for distro kilted showing melodic. Known supported distros are highlighted in the buttons above.

Package Summary

Version 0.8.5
License LGPLv3
Build type CATKIN
Use RECOMMENDED

Repository Summary

Description
Checkout URI https://github.com/ros-industrial/ros_canopen.git
VCS Type git
VCS Version melodic-devel
Last Updated 2026-11-18
Dev Status DEVELOPED
Released RELEASED
Contributing Help Wanted (-)
Good First Issues (-)
Pull Requests to Review (-)

Package Description

CiA(r) CANopen 301 master implementation with support for interprocess master synchronisation.

Additional Links

Maintainers

  • Mathias Lüdtke

Authors

  • Mathias Lüdtke

Overview

This packages contains a master implementation of the CANopen DS 301 protocol. It provides libraries to connect to CANopen devices and access their data objects via high-level interfaces.

Features

This implementation provides support for many CANopen interfaces and services:

  • High-level object dictionary for all simple types, except booleans (1bit)
  • EDS/DCF parser
  • Automatic configuration based on communication objects
  • Full SDO client implementation
  • PDO subscriber/publisher for different transmission types
  • EMCY handling with diagnostics interfaces
  • NMT with heartbeat (client), without node-guarding
  • Plug-in system for bus synchronization and the SYNC objects

CANopen basics

Node ID

Each device is assigned a node ID in range between 1 and 127. It determines the CAN frame the device and listens to, so it must be unique (per bus).

Object dictionary

All data is stored as objects, which are adressed with 4-digit hexadecimal numbers and an optional hexadecimal 8-bit sub index. The object types range from simple integer values to complex structs and arrays.

The object dictionary contains all objects (data + types) and is structured based on the index, notable ranges are:

  • 1000-1FFF: Communication objects
  • 2000-5FFF: Manufacturer-specific objects
  • 6000-6FFF: Profile-specific objects (for first logical device)

Network management (NMT)

The network management includes a state machine for the overall status(pre-operational, operation, stopped) of the devices and service to control the states. Further it can be used to monitor the devices.

Service data objects (SDOs)

Client/server interface for reading and writing objects. SDO cannot be used with stopped devices.

Process data objects (PDOs)

Publisher/subscriber interface for reading and writing objects. Limited to 8 bytes per PDO, can contain multiple (simple) objects. Not all objects can be mapped to PDOS, this depends on the object and the device. PDOs are available in the operational state only.

Synchronization object (SYNC)

Periodically object sent by the master to synchronize the devices of one bus. PDOs might be set-up to be synchronous (recommended for ros_canopen).

Emergency objects (EMCY)

The nodes send these objects on critical errors. The standard lists a wide range of errors code, profile can have additional codes.

EDS/DCF files

The electronic data sheet and the device configuration files are standardized in CiA 306 DS. These are INI files that contain all objects descriptions. The new XML based XDD is currently not supported.

The EDS just contains the defaults, the DCF can include specific parameter values, however canopen_master treats both alike. All entries that have parameter values different from the defaults are written to the device at initialization. PDO objects have additional restrictions and are handled separately.

All manufactures should provide EDS or DCF files. The editor Vector CANeds 3.6 is available freely and plays well with wine. The 3.7 version is free as well, but bundled to the demos version of the big CAN software suites. However, it can extract the object dictionary from any CANopen device.

Master plug-ins

Each CANopen bus shall have up to one master that is responsible for the synchronization. The driver has preliminary support for inter-process communitcation which should allow to run two driver instances on one bus. This implementation is currently not ready for production use however.

For now 2 different implementations exist with allocator plug-ins:

File truncated at 100 lines see the full file

CHANGELOG

Changelog for package canopen_master

0.8.5 (2020-09-22)

0.8.4 (2020-08-22)

  • added settings parameter to DriverInterface::init
  • moved canopen::Settings into can namespace
  • Contributors: Mathias Lüdtke

0.8.3 (2020-05-07)

  • Bump CMake version to avoid CMP0048 warning Signed-off-by: ahcorde <<ahcorde@gmail.com>>
  • Contributors: ahcorde

0.8.2 (2019-11-04)

  • implemented LayerStatus::equals<>()
  • added support for SYNC counter in SimpleSyncLayer (#349)
  • enable rosconsole_bridge bindings
  • switch to new logging macros
  • add logging based on console_bridge
  • removed implicit Header operator
  • Contributors: Mathias Lüdtke

0.8.1 (2019-07-14)

  • Set C++ standard to c++14
  • added Delegate helpers for backwards compatibility
  • implemented create*ListenerM helpers
  • Replacing FastDelegate with std::function and std::bind.
  • Contributors: Harsh Deshpande, Joshua Whitley, Mathias Lüdtke

0.8.0 (2018-07-11)

  • migrated to std::function and std::bind
  • migrated to std::atomic
  • got rid of boost::noncopyable
  • replaced BOOST_FOREACH
  • migrated to std::unordered_map and std::unordered_set
  • migrated to std pointers
  • provided KeyHash for use with unordered containers
  • added c_array access functons to can::Frame
  • Contributors: Mathias Lüdtke

0.7.8 (2018-05-04)

  • Revert "pull make_shared into namespaces" This reverts commit 9b2cd05df76d223647ca81917d289ca6330cdee6.
  • Contributors: Mathias Lüdtke

0.7.7 (2018-05-04)

  • added types for all function objects
  • pull make_shared into namespaces
  • added types for all shared_ptrs
  • migrate to new classloader headers
  • throw bad_cast if datatype is not supported
  • special handling of std::bad_cast
  • address catkin_lint errors/warnings
  • removed IPC/SHM based sync masters
  • Contributors: Mathias Lüdtke

0.7.6 (2017-08-30)

0.7.5 (2017-05-29)

  • added EMCYHandler::resetErrors
  • added VectorHelper::callFunc generalized call templates
  • Contributors: Mathias Lüdtke

0.7.4 (2017-04-25)

0.7.3 (2017-04-25)

  • enforce boost::chrono-based timer
  • Contributors: Mathias Lüdtke

0.7.2 (2017-03-28)

  • fix: handle EMCY as error, not as warning
  • Contributors: Mathias Lüdtke

0.7.1 (2017-03-20)

  • refactored EMCY handling into separate layer
  • print EMCY to stdout
  • send node start on recover needed for external sync to work properly
  • pass halt on error unconditionally
  • added canopen_bcm_sync
  • implemented ExternalMaster
  • added object access services
  • implemented ObjectStorage::getStringReader
  • Contributors: Mathias Lüdtke

0.7.0 (2016-12-13)

0.6.5 (2016-12-10)

File truncated at 100 lines see the full file

Launch files

No launch files found

Messages

No message files found.

Services

No service files found

Plugins

Recent questions tagged canopen_master at Robotics Stack Exchange

No version for distro lyrical showing melodic. Known supported distros are highlighted in the buttons above.

Package Summary

Version 0.8.5
License LGPLv3
Build type CATKIN
Use RECOMMENDED

Repository Summary

Description
Checkout URI https://github.com/ros-industrial/ros_canopen.git
VCS Type git
VCS Version melodic-devel
Last Updated 2026-11-18
Dev Status DEVELOPED
Released RELEASED
Contributing Help Wanted (-)
Good First Issues (-)
Pull Requests to Review (-)

Package Description

CiA(r) CANopen 301 master implementation with support for interprocess master synchronisation.

Additional Links

Maintainers

  • Mathias Lüdtke

Authors

  • Mathias Lüdtke

Overview

This packages contains a master implementation of the CANopen DS 301 protocol. It provides libraries to connect to CANopen devices and access their data objects via high-level interfaces.

Features

This implementation provides support for many CANopen interfaces and services:

  • High-level object dictionary for all simple types, except booleans (1bit)
  • EDS/DCF parser
  • Automatic configuration based on communication objects
  • Full SDO client implementation
  • PDO subscriber/publisher for different transmission types
  • EMCY handling with diagnostics interfaces
  • NMT with heartbeat (client), without node-guarding
  • Plug-in system for bus synchronization and the SYNC objects

CANopen basics

Node ID

Each device is assigned a node ID in range between 1 and 127. It determines the CAN frame the device and listens to, so it must be unique (per bus).

Object dictionary

All data is stored as objects, which are adressed with 4-digit hexadecimal numbers and an optional hexadecimal 8-bit sub index. The object types range from simple integer values to complex structs and arrays.

The object dictionary contains all objects (data + types) and is structured based on the index, notable ranges are:

  • 1000-1FFF: Communication objects
  • 2000-5FFF: Manufacturer-specific objects
  • 6000-6FFF: Profile-specific objects (for first logical device)

Network management (NMT)

The network management includes a state machine for the overall status(pre-operational, operation, stopped) of the devices and service to control the states. Further it can be used to monitor the devices.

Service data objects (SDOs)

Client/server interface for reading and writing objects. SDO cannot be used with stopped devices.

Process data objects (PDOs)

Publisher/subscriber interface for reading and writing objects. Limited to 8 bytes per PDO, can contain multiple (simple) objects. Not all objects can be mapped to PDOS, this depends on the object and the device. PDOs are available in the operational state only.

Synchronization object (SYNC)

Periodically object sent by the master to synchronize the devices of one bus. PDOs might be set-up to be synchronous (recommended for ros_canopen).

Emergency objects (EMCY)

The nodes send these objects on critical errors. The standard lists a wide range of errors code, profile can have additional codes.

EDS/DCF files

The electronic data sheet and the device configuration files are standardized in CiA 306 DS. These are INI files that contain all objects descriptions. The new XML based XDD is currently not supported.

The EDS just contains the defaults, the DCF can include specific parameter values, however canopen_master treats both alike. All entries that have parameter values different from the defaults are written to the device at initialization. PDO objects have additional restrictions and are handled separately.

All manufactures should provide EDS or DCF files. The editor Vector CANeds 3.6 is available freely and plays well with wine. The 3.7 version is free as well, but bundled to the demos version of the big CAN software suites. However, it can extract the object dictionary from any CANopen device.

Master plug-ins

Each CANopen bus shall have up to one master that is responsible for the synchronization. The driver has preliminary support for inter-process communitcation which should allow to run two driver instances on one bus. This implementation is currently not ready for production use however.

For now 2 different implementations exist with allocator plug-ins:

File truncated at 100 lines see the full file

CHANGELOG

Changelog for package canopen_master

0.8.5 (2020-09-22)

0.8.4 (2020-08-22)

  • added settings parameter to DriverInterface::init
  • moved canopen::Settings into can namespace
  • Contributors: Mathias Lüdtke

0.8.3 (2020-05-07)

  • Bump CMake version to avoid CMP0048 warning Signed-off-by: ahcorde <<ahcorde@gmail.com>>
  • Contributors: ahcorde

0.8.2 (2019-11-04)

  • implemented LayerStatus::equals<>()
  • added support for SYNC counter in SimpleSyncLayer (#349)
  • enable rosconsole_bridge bindings
  • switch to new logging macros
  • add logging based on console_bridge
  • removed implicit Header operator
  • Contributors: Mathias Lüdtke

0.8.1 (2019-07-14)

  • Set C++ standard to c++14
  • added Delegate helpers for backwards compatibility
  • implemented create*ListenerM helpers
  • Replacing FastDelegate with std::function and std::bind.
  • Contributors: Harsh Deshpande, Joshua Whitley, Mathias Lüdtke

0.8.0 (2018-07-11)

  • migrated to std::function and std::bind
  • migrated to std::atomic
  • got rid of boost::noncopyable
  • replaced BOOST_FOREACH
  • migrated to std::unordered_map and std::unordered_set
  • migrated to std pointers
  • provided KeyHash for use with unordered containers
  • added c_array access functons to can::Frame
  • Contributors: Mathias Lüdtke

0.7.8 (2018-05-04)

  • Revert "pull make_shared into namespaces" This reverts commit 9b2cd05df76d223647ca81917d289ca6330cdee6.
  • Contributors: Mathias Lüdtke

0.7.7 (2018-05-04)

  • added types for all function objects
  • pull make_shared into namespaces
  • added types for all shared_ptrs
  • migrate to new classloader headers
  • throw bad_cast if datatype is not supported
  • special handling of std::bad_cast
  • address catkin_lint errors/warnings
  • removed IPC/SHM based sync masters
  • Contributors: Mathias Lüdtke

0.7.6 (2017-08-30)

0.7.5 (2017-05-29)

  • added EMCYHandler::resetErrors
  • added VectorHelper::callFunc generalized call templates
  • Contributors: Mathias Lüdtke

0.7.4 (2017-04-25)

0.7.3 (2017-04-25)

  • enforce boost::chrono-based timer
  • Contributors: Mathias Lüdtke

0.7.2 (2017-03-28)

  • fix: handle EMCY as error, not as warning
  • Contributors: Mathias Lüdtke

0.7.1 (2017-03-20)

  • refactored EMCY handling into separate layer
  • print EMCY to stdout
  • send node start on recover needed for external sync to work properly
  • pass halt on error unconditionally
  • added canopen_bcm_sync
  • implemented ExternalMaster
  • added object access services
  • implemented ObjectStorage::getStringReader
  • Contributors: Mathias Lüdtke

0.7.0 (2016-12-13)

0.6.5 (2016-12-10)

File truncated at 100 lines see the full file

Launch files

No launch files found

Messages

No message files found.

Services

No service files found

Plugins

Recent questions tagged canopen_master at Robotics Stack Exchange

No version for distro rolling showing melodic. Known supported distros are highlighted in the buttons above.

Package Summary

Version 0.8.5
License LGPLv3
Build type CATKIN
Use RECOMMENDED

Repository Summary

Description
Checkout URI https://github.com/ros-industrial/ros_canopen.git
VCS Type git
VCS Version melodic-devel
Last Updated 2026-11-18
Dev Status DEVELOPED
Released RELEASED
Contributing Help Wanted (-)
Good First Issues (-)
Pull Requests to Review (-)

Package Description

CiA(r) CANopen 301 master implementation with support for interprocess master synchronisation.

Additional Links

Maintainers

  • Mathias Lüdtke

Authors

  • Mathias Lüdtke

Overview

This packages contains a master implementation of the CANopen DS 301 protocol. It provides libraries to connect to CANopen devices and access their data objects via high-level interfaces.

Features

This implementation provides support for many CANopen interfaces and services:

  • High-level object dictionary for all simple types, except booleans (1bit)
  • EDS/DCF parser
  • Automatic configuration based on communication objects
  • Full SDO client implementation
  • PDO subscriber/publisher for different transmission types
  • EMCY handling with diagnostics interfaces
  • NMT with heartbeat (client), without node-guarding
  • Plug-in system for bus synchronization and the SYNC objects

CANopen basics

Node ID

Each device is assigned a node ID in range between 1 and 127. It determines the CAN frame the device and listens to, so it must be unique (per bus).

Object dictionary

All data is stored as objects, which are adressed with 4-digit hexadecimal numbers and an optional hexadecimal 8-bit sub index. The object types range from simple integer values to complex structs and arrays.

The object dictionary contains all objects (data + types) and is structured based on the index, notable ranges are:

  • 1000-1FFF: Communication objects
  • 2000-5FFF: Manufacturer-specific objects
  • 6000-6FFF: Profile-specific objects (for first logical device)

Network management (NMT)

The network management includes a state machine for the overall status(pre-operational, operation, stopped) of the devices and service to control the states. Further it can be used to monitor the devices.

Service data objects (SDOs)

Client/server interface for reading and writing objects. SDO cannot be used with stopped devices.

Process data objects (PDOs)

Publisher/subscriber interface for reading and writing objects. Limited to 8 bytes per PDO, can contain multiple (simple) objects. Not all objects can be mapped to PDOS, this depends on the object and the device. PDOs are available in the operational state only.

Synchronization object (SYNC)

Periodically object sent by the master to synchronize the devices of one bus. PDOs might be set-up to be synchronous (recommended for ros_canopen).

Emergency objects (EMCY)

The nodes send these objects on critical errors. The standard lists a wide range of errors code, profile can have additional codes.

EDS/DCF files

The electronic data sheet and the device configuration files are standardized in CiA 306 DS. These are INI files that contain all objects descriptions. The new XML based XDD is currently not supported.

The EDS just contains the defaults, the DCF can include specific parameter values, however canopen_master treats both alike. All entries that have parameter values different from the defaults are written to the device at initialization. PDO objects have additional restrictions and are handled separately.

All manufactures should provide EDS or DCF files. The editor Vector CANeds 3.6 is available freely and plays well with wine. The 3.7 version is free as well, but bundled to the demos version of the big CAN software suites. However, it can extract the object dictionary from any CANopen device.

Master plug-ins

Each CANopen bus shall have up to one master that is responsible for the synchronization. The driver has preliminary support for inter-process communitcation which should allow to run two driver instances on one bus. This implementation is currently not ready for production use however.

For now 2 different implementations exist with allocator plug-ins:

File truncated at 100 lines see the full file

CHANGELOG

Changelog for package canopen_master

0.8.5 (2020-09-22)

0.8.4 (2020-08-22)

  • added settings parameter to DriverInterface::init
  • moved canopen::Settings into can namespace
  • Contributors: Mathias Lüdtke

0.8.3 (2020-05-07)

  • Bump CMake version to avoid CMP0048 warning Signed-off-by: ahcorde <<ahcorde@gmail.com>>
  • Contributors: ahcorde

0.8.2 (2019-11-04)

  • implemented LayerStatus::equals<>()
  • added support for SYNC counter in SimpleSyncLayer (#349)
  • enable rosconsole_bridge bindings
  • switch to new logging macros
  • add logging based on console_bridge
  • removed implicit Header operator
  • Contributors: Mathias Lüdtke

0.8.1 (2019-07-14)

  • Set C++ standard to c++14
  • added Delegate helpers for backwards compatibility
  • implemented create*ListenerM helpers
  • Replacing FastDelegate with std::function and std::bind.
  • Contributors: Harsh Deshpande, Joshua Whitley, Mathias Lüdtke

0.8.0 (2018-07-11)

  • migrated to std::function and std::bind
  • migrated to std::atomic
  • got rid of boost::noncopyable
  • replaced BOOST_FOREACH
  • migrated to std::unordered_map and std::unordered_set
  • migrated to std pointers
  • provided KeyHash for use with unordered containers
  • added c_array access functons to can::Frame
  • Contributors: Mathias Lüdtke

0.7.8 (2018-05-04)

  • Revert "pull make_shared into namespaces" This reverts commit 9b2cd05df76d223647ca81917d289ca6330cdee6.
  • Contributors: Mathias Lüdtke

0.7.7 (2018-05-04)

  • added types for all function objects
  • pull make_shared into namespaces
  • added types for all shared_ptrs
  • migrate to new classloader headers
  • throw bad_cast if datatype is not supported
  • special handling of std::bad_cast
  • address catkin_lint errors/warnings
  • removed IPC/SHM based sync masters
  • Contributors: Mathias Lüdtke

0.7.6 (2017-08-30)

0.7.5 (2017-05-29)

  • added EMCYHandler::resetErrors
  • added VectorHelper::callFunc generalized call templates
  • Contributors: Mathias Lüdtke

0.7.4 (2017-04-25)

0.7.3 (2017-04-25)

  • enforce boost::chrono-based timer
  • Contributors: Mathias Lüdtke

0.7.2 (2017-03-28)

  • fix: handle EMCY as error, not as warning
  • Contributors: Mathias Lüdtke

0.7.1 (2017-03-20)

  • refactored EMCY handling into separate layer
  • print EMCY to stdout
  • send node start on recover needed for external sync to work properly
  • pass halt on error unconditionally
  • added canopen_bcm_sync
  • implemented ExternalMaster
  • added object access services
  • implemented ObjectStorage::getStringReader
  • Contributors: Mathias Lüdtke

0.7.0 (2016-12-13)

0.6.5 (2016-12-10)

File truncated at 100 lines see the full file

Launch files

No launch files found

Messages

No message files found.

Services

No service files found

Plugins

Recent questions tagged canopen_master at Robotics Stack Exchange

No version for distro github showing melodic. Known supported distros are highlighted in the buttons above.

Package Summary

Version 0.8.5
License LGPLv3
Build type CATKIN
Use RECOMMENDED

Repository Summary

Description
Checkout URI https://github.com/ros-industrial/ros_canopen.git
VCS Type git
VCS Version melodic-devel
Last Updated 2026-11-18
Dev Status DEVELOPED
Released RELEASED
Contributing Help Wanted (-)
Good First Issues (-)
Pull Requests to Review (-)

Package Description

CiA(r) CANopen 301 master implementation with support for interprocess master synchronisation.

Additional Links

Maintainers

  • Mathias Lüdtke

Authors

  • Mathias Lüdtke

Overview

This packages contains a master implementation of the CANopen DS 301 protocol. It provides libraries to connect to CANopen devices and access their data objects via high-level interfaces.

Features

This implementation provides support for many CANopen interfaces and services:

  • High-level object dictionary for all simple types, except booleans (1bit)
  • EDS/DCF parser
  • Automatic configuration based on communication objects
  • Full SDO client implementation
  • PDO subscriber/publisher for different transmission types
  • EMCY handling with diagnostics interfaces
  • NMT with heartbeat (client), without node-guarding
  • Plug-in system for bus synchronization and the SYNC objects

CANopen basics

Node ID

Each device is assigned a node ID in range between 1 and 127. It determines the CAN frame the device and listens to, so it must be unique (per bus).

Object dictionary

All data is stored as objects, which are adressed with 4-digit hexadecimal numbers and an optional hexadecimal 8-bit sub index. The object types range from simple integer values to complex structs and arrays.

The object dictionary contains all objects (data + types) and is structured based on the index, notable ranges are:

  • 1000-1FFF: Communication objects
  • 2000-5FFF: Manufacturer-specific objects
  • 6000-6FFF: Profile-specific objects (for first logical device)

Network management (NMT)

The network management includes a state machine for the overall status(pre-operational, operation, stopped) of the devices and service to control the states. Further it can be used to monitor the devices.

Service data objects (SDOs)

Client/server interface for reading and writing objects. SDO cannot be used with stopped devices.

Process data objects (PDOs)

Publisher/subscriber interface for reading and writing objects. Limited to 8 bytes per PDO, can contain multiple (simple) objects. Not all objects can be mapped to PDOS, this depends on the object and the device. PDOs are available in the operational state only.

Synchronization object (SYNC)

Periodically object sent by the master to synchronize the devices of one bus. PDOs might be set-up to be synchronous (recommended for ros_canopen).

Emergency objects (EMCY)

The nodes send these objects on critical errors. The standard lists a wide range of errors code, profile can have additional codes.

EDS/DCF files

The electronic data sheet and the device configuration files are standardized in CiA 306 DS. These are INI files that contain all objects descriptions. The new XML based XDD is currently not supported.

The EDS just contains the defaults, the DCF can include specific parameter values, however canopen_master treats both alike. All entries that have parameter values different from the defaults are written to the device at initialization. PDO objects have additional restrictions and are handled separately.

All manufactures should provide EDS or DCF files. The editor Vector CANeds 3.6 is available freely and plays well with wine. The 3.7 version is free as well, but bundled to the demos version of the big CAN software suites. However, it can extract the object dictionary from any CANopen device.

Master plug-ins

Each CANopen bus shall have up to one master that is responsible for the synchronization. The driver has preliminary support for inter-process communitcation which should allow to run two driver instances on one bus. This implementation is currently not ready for production use however.

For now 2 different implementations exist with allocator plug-ins:

File truncated at 100 lines see the full file

CHANGELOG

Changelog for package canopen_master

0.8.5 (2020-09-22)

0.8.4 (2020-08-22)

  • added settings parameter to DriverInterface::init
  • moved canopen::Settings into can namespace
  • Contributors: Mathias Lüdtke

0.8.3 (2020-05-07)

  • Bump CMake version to avoid CMP0048 warning Signed-off-by: ahcorde <<ahcorde@gmail.com>>
  • Contributors: ahcorde

0.8.2 (2019-11-04)

  • implemented LayerStatus::equals<>()
  • added support for SYNC counter in SimpleSyncLayer (#349)
  • enable rosconsole_bridge bindings
  • switch to new logging macros
  • add logging based on console_bridge
  • removed implicit Header operator
  • Contributors: Mathias Lüdtke

0.8.1 (2019-07-14)

  • Set C++ standard to c++14
  • added Delegate helpers for backwards compatibility
  • implemented create*ListenerM helpers
  • Replacing FastDelegate with std::function and std::bind.
  • Contributors: Harsh Deshpande, Joshua Whitley, Mathias Lüdtke

0.8.0 (2018-07-11)

  • migrated to std::function and std::bind
  • migrated to std::atomic
  • got rid of boost::noncopyable
  • replaced BOOST_FOREACH
  • migrated to std::unordered_map and std::unordered_set
  • migrated to std pointers
  • provided KeyHash for use with unordered containers
  • added c_array access functons to can::Frame
  • Contributors: Mathias Lüdtke

0.7.8 (2018-05-04)

  • Revert "pull make_shared into namespaces" This reverts commit 9b2cd05df76d223647ca81917d289ca6330cdee6.
  • Contributors: Mathias Lüdtke

0.7.7 (2018-05-04)

  • added types for all function objects
  • pull make_shared into namespaces
  • added types for all shared_ptrs
  • migrate to new classloader headers
  • throw bad_cast if datatype is not supported
  • special handling of std::bad_cast
  • address catkin_lint errors/warnings
  • removed IPC/SHM based sync masters
  • Contributors: Mathias Lüdtke

0.7.6 (2017-08-30)

0.7.5 (2017-05-29)

  • added EMCYHandler::resetErrors
  • added VectorHelper::callFunc generalized call templates
  • Contributors: Mathias Lüdtke

0.7.4 (2017-04-25)

0.7.3 (2017-04-25)

  • enforce boost::chrono-based timer
  • Contributors: Mathias Lüdtke

0.7.2 (2017-03-28)

  • fix: handle EMCY as error, not as warning
  • Contributors: Mathias Lüdtke

0.7.1 (2017-03-20)

  • refactored EMCY handling into separate layer
  • print EMCY to stdout
  • send node start on recover needed for external sync to work properly
  • pass halt on error unconditionally
  • added canopen_bcm_sync
  • implemented ExternalMaster
  • added object access services
  • implemented ObjectStorage::getStringReader
  • Contributors: Mathias Lüdtke

0.7.0 (2016-12-13)

0.6.5 (2016-12-10)

File truncated at 100 lines see the full file

Launch files

No launch files found

Messages

No message files found.

Services

No service files found

Plugins

Recent questions tagged canopen_master at Robotics Stack Exchange

No version for distro galactic showing melodic. Known supported distros are highlighted in the buttons above.

Package Summary

Version 0.8.5
License LGPLv3
Build type CATKIN
Use RECOMMENDED

Repository Summary

Description
Checkout URI https://github.com/ros-industrial/ros_canopen.git
VCS Type git
VCS Version melodic-devel
Last Updated 2026-11-18
Dev Status DEVELOPED
Released RELEASED
Contributing Help Wanted (-)
Good First Issues (-)
Pull Requests to Review (-)

Package Description

CiA(r) CANopen 301 master implementation with support for interprocess master synchronisation.

Additional Links

Maintainers

  • Mathias Lüdtke

Authors

  • Mathias Lüdtke

Overview

This packages contains a master implementation of the CANopen DS 301 protocol. It provides libraries to connect to CANopen devices and access their data objects via high-level interfaces.

Features

This implementation provides support for many CANopen interfaces and services:

  • High-level object dictionary for all simple types, except booleans (1bit)
  • EDS/DCF parser
  • Automatic configuration based on communication objects
  • Full SDO client implementation
  • PDO subscriber/publisher for different transmission types
  • EMCY handling with diagnostics interfaces
  • NMT with heartbeat (client), without node-guarding
  • Plug-in system for bus synchronization and the SYNC objects

CANopen basics

Node ID

Each device is assigned a node ID in range between 1 and 127. It determines the CAN frame the device and listens to, so it must be unique (per bus).

Object dictionary

All data is stored as objects, which are adressed with 4-digit hexadecimal numbers and an optional hexadecimal 8-bit sub index. The object types range from simple integer values to complex structs and arrays.

The object dictionary contains all objects (data + types) and is structured based on the index, notable ranges are:

  • 1000-1FFF: Communication objects
  • 2000-5FFF: Manufacturer-specific objects
  • 6000-6FFF: Profile-specific objects (for first logical device)

Network management (NMT)

The network management includes a state machine for the overall status(pre-operational, operation, stopped) of the devices and service to control the states. Further it can be used to monitor the devices.

Service data objects (SDOs)

Client/server interface for reading and writing objects. SDO cannot be used with stopped devices.

Process data objects (PDOs)

Publisher/subscriber interface for reading and writing objects. Limited to 8 bytes per PDO, can contain multiple (simple) objects. Not all objects can be mapped to PDOS, this depends on the object and the device. PDOs are available in the operational state only.

Synchronization object (SYNC)

Periodically object sent by the master to synchronize the devices of one bus. PDOs might be set-up to be synchronous (recommended for ros_canopen).

Emergency objects (EMCY)

The nodes send these objects on critical errors. The standard lists a wide range of errors code, profile can have additional codes.

EDS/DCF files

The electronic data sheet and the device configuration files are standardized in CiA 306 DS. These are INI files that contain all objects descriptions. The new XML based XDD is currently not supported.

The EDS just contains the defaults, the DCF can include specific parameter values, however canopen_master treats both alike. All entries that have parameter values different from the defaults are written to the device at initialization. PDO objects have additional restrictions and are handled separately.

All manufactures should provide EDS or DCF files. The editor Vector CANeds 3.6 is available freely and plays well with wine. The 3.7 version is free as well, but bundled to the demos version of the big CAN software suites. However, it can extract the object dictionary from any CANopen device.

Master plug-ins

Each CANopen bus shall have up to one master that is responsible for the synchronization. The driver has preliminary support for inter-process communitcation which should allow to run two driver instances on one bus. This implementation is currently not ready for production use however.

For now 2 different implementations exist with allocator plug-ins:

File truncated at 100 lines see the full file

CHANGELOG

Changelog for package canopen_master

0.8.5 (2020-09-22)

0.8.4 (2020-08-22)

  • added settings parameter to DriverInterface::init
  • moved canopen::Settings into can namespace
  • Contributors: Mathias Lüdtke

0.8.3 (2020-05-07)

  • Bump CMake version to avoid CMP0048 warning Signed-off-by: ahcorde <<ahcorde@gmail.com>>
  • Contributors: ahcorde

0.8.2 (2019-11-04)

  • implemented LayerStatus::equals<>()
  • added support for SYNC counter in SimpleSyncLayer (#349)
  • enable rosconsole_bridge bindings
  • switch to new logging macros
  • add logging based on console_bridge
  • removed implicit Header operator
  • Contributors: Mathias Lüdtke

0.8.1 (2019-07-14)

  • Set C++ standard to c++14
  • added Delegate helpers for backwards compatibility
  • implemented create*ListenerM helpers
  • Replacing FastDelegate with std::function and std::bind.
  • Contributors: Harsh Deshpande, Joshua Whitley, Mathias Lüdtke

0.8.0 (2018-07-11)

  • migrated to std::function and std::bind
  • migrated to std::atomic
  • got rid of boost::noncopyable
  • replaced BOOST_FOREACH
  • migrated to std::unordered_map and std::unordered_set
  • migrated to std pointers
  • provided KeyHash for use with unordered containers
  • added c_array access functons to can::Frame
  • Contributors: Mathias Lüdtke

0.7.8 (2018-05-04)

  • Revert "pull make_shared into namespaces" This reverts commit 9b2cd05df76d223647ca81917d289ca6330cdee6.
  • Contributors: Mathias Lüdtke

0.7.7 (2018-05-04)

  • added types for all function objects
  • pull make_shared into namespaces
  • added types for all shared_ptrs
  • migrate to new classloader headers
  • throw bad_cast if datatype is not supported
  • special handling of std::bad_cast
  • address catkin_lint errors/warnings
  • removed IPC/SHM based sync masters
  • Contributors: Mathias Lüdtke

0.7.6 (2017-08-30)

0.7.5 (2017-05-29)

  • added EMCYHandler::resetErrors
  • added VectorHelper::callFunc generalized call templates
  • Contributors: Mathias Lüdtke

0.7.4 (2017-04-25)

0.7.3 (2017-04-25)

  • enforce boost::chrono-based timer
  • Contributors: Mathias Lüdtke

0.7.2 (2017-03-28)

  • fix: handle EMCY as error, not as warning
  • Contributors: Mathias Lüdtke

0.7.1 (2017-03-20)

  • refactored EMCY handling into separate layer
  • print EMCY to stdout
  • send node start on recover needed for external sync to work properly
  • pass halt on error unconditionally
  • added canopen_bcm_sync
  • implemented ExternalMaster
  • added object access services
  • implemented ObjectStorage::getStringReader
  • Contributors: Mathias Lüdtke

0.7.0 (2016-12-13)

0.6.5 (2016-12-10)

File truncated at 100 lines see the full file

Launch files

No launch files found

Messages

No message files found.

Services

No service files found

Plugins

Recent questions tagged canopen_master at Robotics Stack Exchange

No version for distro iron showing melodic. Known supported distros are highlighted in the buttons above.

Package Summary

Version 0.8.5
License LGPLv3
Build type CATKIN
Use RECOMMENDED

Repository Summary

Description
Checkout URI https://github.com/ros-industrial/ros_canopen.git
VCS Type git
VCS Version melodic-devel
Last Updated 2026-11-18
Dev Status DEVELOPED
Released RELEASED
Contributing Help Wanted (-)
Good First Issues (-)
Pull Requests to Review (-)

Package Description

CiA(r) CANopen 301 master implementation with support for interprocess master synchronisation.

Additional Links

Maintainers

  • Mathias Lüdtke

Authors

  • Mathias Lüdtke

Overview

This packages contains a master implementation of the CANopen DS 301 protocol. It provides libraries to connect to CANopen devices and access their data objects via high-level interfaces.

Features

This implementation provides support for many CANopen interfaces and services:

  • High-level object dictionary for all simple types, except booleans (1bit)
  • EDS/DCF parser
  • Automatic configuration based on communication objects
  • Full SDO client implementation
  • PDO subscriber/publisher for different transmission types
  • EMCY handling with diagnostics interfaces
  • NMT with heartbeat (client), without node-guarding
  • Plug-in system for bus synchronization and the SYNC objects

CANopen basics

Node ID

Each device is assigned a node ID in range between 1 and 127. It determines the CAN frame the device and listens to, so it must be unique (per bus).

Object dictionary

All data is stored as objects, which are adressed with 4-digit hexadecimal numbers and an optional hexadecimal 8-bit sub index. The object types range from simple integer values to complex structs and arrays.

The object dictionary contains all objects (data + types) and is structured based on the index, notable ranges are:

  • 1000-1FFF: Communication objects
  • 2000-5FFF: Manufacturer-specific objects
  • 6000-6FFF: Profile-specific objects (for first logical device)

Network management (NMT)

The network management includes a state machine for the overall status(pre-operational, operation, stopped) of the devices and service to control the states. Further it can be used to monitor the devices.

Service data objects (SDOs)

Client/server interface for reading and writing objects. SDO cannot be used with stopped devices.

Process data objects (PDOs)

Publisher/subscriber interface for reading and writing objects. Limited to 8 bytes per PDO, can contain multiple (simple) objects. Not all objects can be mapped to PDOS, this depends on the object and the device. PDOs are available in the operational state only.

Synchronization object (SYNC)

Periodically object sent by the master to synchronize the devices of one bus. PDOs might be set-up to be synchronous (recommended for ros_canopen).

Emergency objects (EMCY)

The nodes send these objects on critical errors. The standard lists a wide range of errors code, profile can have additional codes.

EDS/DCF files

The electronic data sheet and the device configuration files are standardized in CiA 306 DS. These are INI files that contain all objects descriptions. The new XML based XDD is currently not supported.

The EDS just contains the defaults, the DCF can include specific parameter values, however canopen_master treats both alike. All entries that have parameter values different from the defaults are written to the device at initialization. PDO objects have additional restrictions and are handled separately.

All manufactures should provide EDS or DCF files. The editor Vector CANeds 3.6 is available freely and plays well with wine. The 3.7 version is free as well, but bundled to the demos version of the big CAN software suites. However, it can extract the object dictionary from any CANopen device.

Master plug-ins

Each CANopen bus shall have up to one master that is responsible for the synchronization. The driver has preliminary support for inter-process communitcation which should allow to run two driver instances on one bus. This implementation is currently not ready for production use however.

For now 2 different implementations exist with allocator plug-ins:

File truncated at 100 lines see the full file

CHANGELOG

Changelog for package canopen_master

0.8.5 (2020-09-22)

0.8.4 (2020-08-22)

  • added settings parameter to DriverInterface::init
  • moved canopen::Settings into can namespace
  • Contributors: Mathias Lüdtke

0.8.3 (2020-05-07)

  • Bump CMake version to avoid CMP0048 warning Signed-off-by: ahcorde <<ahcorde@gmail.com>>
  • Contributors: ahcorde

0.8.2 (2019-11-04)

  • implemented LayerStatus::equals<>()
  • added support for SYNC counter in SimpleSyncLayer (#349)
  • enable rosconsole_bridge bindings
  • switch to new logging macros
  • add logging based on console_bridge
  • removed implicit Header operator
  • Contributors: Mathias Lüdtke

0.8.1 (2019-07-14)

  • Set C++ standard to c++14
  • added Delegate helpers for backwards compatibility
  • implemented create*ListenerM helpers
  • Replacing FastDelegate with std::function and std::bind.
  • Contributors: Harsh Deshpande, Joshua Whitley, Mathias Lüdtke

0.8.0 (2018-07-11)

  • migrated to std::function and std::bind
  • migrated to std::atomic
  • got rid of boost::noncopyable
  • replaced BOOST_FOREACH
  • migrated to std::unordered_map and std::unordered_set
  • migrated to std pointers
  • provided KeyHash for use with unordered containers
  • added c_array access functons to can::Frame
  • Contributors: Mathias Lüdtke

0.7.8 (2018-05-04)

  • Revert "pull make_shared into namespaces" This reverts commit 9b2cd05df76d223647ca81917d289ca6330cdee6.
  • Contributors: Mathias Lüdtke

0.7.7 (2018-05-04)

  • added types for all function objects
  • pull make_shared into namespaces
  • added types for all shared_ptrs
  • migrate to new classloader headers
  • throw bad_cast if datatype is not supported
  • special handling of std::bad_cast
  • address catkin_lint errors/warnings
  • removed IPC/SHM based sync masters
  • Contributors: Mathias Lüdtke

0.7.6 (2017-08-30)

0.7.5 (2017-05-29)

  • added EMCYHandler::resetErrors
  • added VectorHelper::callFunc generalized call templates
  • Contributors: Mathias Lüdtke

0.7.4 (2017-04-25)

0.7.3 (2017-04-25)

  • enforce boost::chrono-based timer
  • Contributors: Mathias Lüdtke

0.7.2 (2017-03-28)

  • fix: handle EMCY as error, not as warning
  • Contributors: Mathias Lüdtke

0.7.1 (2017-03-20)

  • refactored EMCY handling into separate layer
  • print EMCY to stdout
  • send node start on recover needed for external sync to work properly
  • pass halt on error unconditionally
  • added canopen_bcm_sync
  • implemented ExternalMaster
  • added object access services
  • implemented ObjectStorage::getStringReader
  • Contributors: Mathias Lüdtke

0.7.0 (2016-12-13)

0.6.5 (2016-12-10)

File truncated at 100 lines see the full file

Launch files

No launch files found

Messages

No message files found.

Services

No service files found

Plugins

Recent questions tagged canopen_master at Robotics Stack Exchange

Package Summary

Version 0.8.5
License LGPLv3
Build type CATKIN
Use RECOMMENDED

Repository Summary

Description
Checkout URI https://github.com/ros-industrial/ros_canopen.git
VCS Type git
VCS Version melodic-devel
Last Updated 2026-11-18
Dev Status DEVELOPED
Released RELEASED
Contributing Help Wanted (-)
Good First Issues (-)
Pull Requests to Review (-)

Package Description

CiA(r) CANopen 301 master implementation with support for interprocess master synchronisation.

Additional Links

Maintainers

  • Mathias Lüdtke

Authors

  • Mathias Lüdtke

Overview

This packages contains a master implementation of the CANopen DS 301 protocol. It provides libraries to connect to CANopen devices and access their data objects via high-level interfaces.

Features

This implementation provides support for many CANopen interfaces and services:

  • High-level object dictionary for all simple types, except booleans (1bit)
  • EDS/DCF parser
  • Automatic configuration based on communication objects
  • Full SDO client implementation
  • PDO subscriber/publisher for different transmission types
  • EMCY handling with diagnostics interfaces
  • NMT with heartbeat (client), without node-guarding
  • Plug-in system for bus synchronization and the SYNC objects

CANopen basics

Node ID

Each device is assigned a node ID in range between 1 and 127. It determines the CAN frame the device and listens to, so it must be unique (per bus).

Object dictionary

All data is stored as objects, which are adressed with 4-digit hexadecimal numbers and an optional hexadecimal 8-bit sub index. The object types range from simple integer values to complex structs and arrays.

The object dictionary contains all objects (data + types) and is structured based on the index, notable ranges are:

  • 1000-1FFF: Communication objects
  • 2000-5FFF: Manufacturer-specific objects
  • 6000-6FFF: Profile-specific objects (for first logical device)

Network management (NMT)

The network management includes a state machine for the overall status(pre-operational, operation, stopped) of the devices and service to control the states. Further it can be used to monitor the devices.

Service data objects (SDOs)

Client/server interface for reading and writing objects. SDO cannot be used with stopped devices.

Process data objects (PDOs)

Publisher/subscriber interface for reading and writing objects. Limited to 8 bytes per PDO, can contain multiple (simple) objects. Not all objects can be mapped to PDOS, this depends on the object and the device. PDOs are available in the operational state only.

Synchronization object (SYNC)

Periodically object sent by the master to synchronize the devices of one bus. PDOs might be set-up to be synchronous (recommended for ros_canopen).

Emergency objects (EMCY)

The nodes send these objects on critical errors. The standard lists a wide range of errors code, profile can have additional codes.

EDS/DCF files

The electronic data sheet and the device configuration files are standardized in CiA 306 DS. These are INI files that contain all objects descriptions. The new XML based XDD is currently not supported.

The EDS just contains the defaults, the DCF can include specific parameter values, however canopen_master treats both alike. All entries that have parameter values different from the defaults are written to the device at initialization. PDO objects have additional restrictions and are handled separately.

All manufactures should provide EDS or DCF files. The editor Vector CANeds 3.6 is available freely and plays well with wine. The 3.7 version is free as well, but bundled to the demos version of the big CAN software suites. However, it can extract the object dictionary from any CANopen device.

Master plug-ins

Each CANopen bus shall have up to one master that is responsible for the synchronization. The driver has preliminary support for inter-process communitcation which should allow to run two driver instances on one bus. This implementation is currently not ready for production use however.

For now 2 different implementations exist with allocator plug-ins:

File truncated at 100 lines see the full file

CHANGELOG

Changelog for package canopen_master

0.8.5 (2020-09-22)

0.8.4 (2020-08-22)

  • added settings parameter to DriverInterface::init
  • moved canopen::Settings into can namespace
  • Contributors: Mathias Lüdtke

0.8.3 (2020-05-07)

  • Bump CMake version to avoid CMP0048 warning Signed-off-by: ahcorde <<ahcorde@gmail.com>>
  • Contributors: ahcorde

0.8.2 (2019-11-04)

  • implemented LayerStatus::equals<>()
  • added support for SYNC counter in SimpleSyncLayer (#349)
  • enable rosconsole_bridge bindings
  • switch to new logging macros
  • add logging based on console_bridge
  • removed implicit Header operator
  • Contributors: Mathias Lüdtke

0.8.1 (2019-07-14)

  • Set C++ standard to c++14
  • added Delegate helpers for backwards compatibility
  • implemented create*ListenerM helpers
  • Replacing FastDelegate with std::function and std::bind.
  • Contributors: Harsh Deshpande, Joshua Whitley, Mathias Lüdtke

0.8.0 (2018-07-11)

  • migrated to std::function and std::bind
  • migrated to std::atomic
  • got rid of boost::noncopyable
  • replaced BOOST_FOREACH
  • migrated to std::unordered_map and std::unordered_set
  • migrated to std pointers
  • provided KeyHash for use with unordered containers
  • added c_array access functons to can::Frame
  • Contributors: Mathias Lüdtke

0.7.8 (2018-05-04)

  • Revert "pull make_shared into namespaces" This reverts commit 9b2cd05df76d223647ca81917d289ca6330cdee6.
  • Contributors: Mathias Lüdtke

0.7.7 (2018-05-04)

  • added types for all function objects
  • pull make_shared into namespaces
  • added types for all shared_ptrs
  • migrate to new classloader headers
  • throw bad_cast if datatype is not supported
  • special handling of std::bad_cast
  • address catkin_lint errors/warnings
  • removed IPC/SHM based sync masters
  • Contributors: Mathias Lüdtke

0.7.6 (2017-08-30)

0.7.5 (2017-05-29)

  • added EMCYHandler::resetErrors
  • added VectorHelper::callFunc generalized call templates
  • Contributors: Mathias Lüdtke

0.7.4 (2017-04-25)

0.7.3 (2017-04-25)

  • enforce boost::chrono-based timer
  • Contributors: Mathias Lüdtke

0.7.2 (2017-03-28)

  • fix: handle EMCY as error, not as warning
  • Contributors: Mathias Lüdtke

0.7.1 (2017-03-20)

  • refactored EMCY handling into separate layer
  • print EMCY to stdout
  • send node start on recover needed for external sync to work properly
  • pass halt on error unconditionally
  • added canopen_bcm_sync
  • implemented ExternalMaster
  • added object access services
  • implemented ObjectStorage::getStringReader
  • Contributors: Mathias Lüdtke

0.7.0 (2016-12-13)

0.6.5 (2016-12-10)

File truncated at 100 lines see the full file

Launch files

No launch files found

Messages

No message files found.

Services

No service files found

Plugins

Recent questions tagged canopen_master at Robotics Stack Exchange

Package Summary

Version 0.8.5
License LGPLv3
Build type CATKIN
Use RECOMMENDED

Repository Summary

Description
Checkout URI https://github.com/ros-industrial/ros_canopen.git
VCS Type git
VCS Version melodic-devel
Last Updated 2026-11-18
Dev Status DEVELOPED
Released RELEASED
Contributing Help Wanted (-)
Good First Issues (-)
Pull Requests to Review (-)

Package Description

CiA(r) CANopen 301 master implementation with support for interprocess master synchronisation.

Additional Links

Maintainers

  • Mathias Lüdtke

Authors

  • Mathias Lüdtke

Overview

This packages contains a master implementation of the CANopen DS 301 protocol. It provides libraries to connect to CANopen devices and access their data objects via high-level interfaces.

Features

This implementation provides support for many CANopen interfaces and services:

  • High-level object dictionary for all simple types, except booleans (1bit)
  • EDS/DCF parser
  • Automatic configuration based on communication objects
  • Full SDO client implementation
  • PDO subscriber/publisher for different transmission types
  • EMCY handling with diagnostics interfaces
  • NMT with heartbeat (client), without node-guarding
  • Plug-in system for bus synchronization and the SYNC objects

CANopen basics

Node ID

Each device is assigned a node ID in range between 1 and 127. It determines the CAN frame the device and listens to, so it must be unique (per bus).

Object dictionary

All data is stored as objects, which are adressed with 4-digit hexadecimal numbers and an optional hexadecimal 8-bit sub index. The object types range from simple integer values to complex structs and arrays.

The object dictionary contains all objects (data + types) and is structured based on the index, notable ranges are:

  • 1000-1FFF: Communication objects
  • 2000-5FFF: Manufacturer-specific objects
  • 6000-6FFF: Profile-specific objects (for first logical device)

Network management (NMT)

The network management includes a state machine for the overall status(pre-operational, operation, stopped) of the devices and service to control the states. Further it can be used to monitor the devices.

Service data objects (SDOs)

Client/server interface for reading and writing objects. SDO cannot be used with stopped devices.

Process data objects (PDOs)

Publisher/subscriber interface for reading and writing objects. Limited to 8 bytes per PDO, can contain multiple (simple) objects. Not all objects can be mapped to PDOS, this depends on the object and the device. PDOs are available in the operational state only.

Synchronization object (SYNC)

Periodically object sent by the master to synchronize the devices of one bus. PDOs might be set-up to be synchronous (recommended for ros_canopen).

Emergency objects (EMCY)

The nodes send these objects on critical errors. The standard lists a wide range of errors code, profile can have additional codes.

EDS/DCF files

The electronic data sheet and the device configuration files are standardized in CiA 306 DS. These are INI files that contain all objects descriptions. The new XML based XDD is currently not supported.

The EDS just contains the defaults, the DCF can include specific parameter values, however canopen_master treats both alike. All entries that have parameter values different from the defaults are written to the device at initialization. PDO objects have additional restrictions and are handled separately.

All manufactures should provide EDS or DCF files. The editor Vector CANeds 3.6 is available freely and plays well with wine. The 3.7 version is free as well, but bundled to the demos version of the big CAN software suites. However, it can extract the object dictionary from any CANopen device.

Master plug-ins

Each CANopen bus shall have up to one master that is responsible for the synchronization. The driver has preliminary support for inter-process communitcation which should allow to run two driver instances on one bus. This implementation is currently not ready for production use however.

For now 2 different implementations exist with allocator plug-ins:

File truncated at 100 lines see the full file

CHANGELOG

Changelog for package canopen_master

0.8.5 (2020-09-22)

0.8.4 (2020-08-22)

  • added settings parameter to DriverInterface::init
  • moved canopen::Settings into can namespace
  • Contributors: Mathias Lüdtke

0.8.3 (2020-05-07)

  • Bump CMake version to avoid CMP0048 warning Signed-off-by: ahcorde <<ahcorde@gmail.com>>
  • Contributors: ahcorde

0.8.2 (2019-11-04)

  • implemented LayerStatus::equals<>()
  • added support for SYNC counter in SimpleSyncLayer (#349)
  • enable rosconsole_bridge bindings
  • switch to new logging macros
  • add logging based on console_bridge
  • removed implicit Header operator
  • Contributors: Mathias Lüdtke

0.8.1 (2019-07-14)

  • Set C++ standard to c++14
  • added Delegate helpers for backwards compatibility
  • implemented create*ListenerM helpers
  • Replacing FastDelegate with std::function and std::bind.
  • Contributors: Harsh Deshpande, Joshua Whitley, Mathias Lüdtke

0.8.0 (2018-07-11)

  • migrated to std::function and std::bind
  • migrated to std::atomic
  • got rid of boost::noncopyable
  • replaced BOOST_FOREACH
  • migrated to std::unordered_map and std::unordered_set
  • migrated to std pointers
  • provided KeyHash for use with unordered containers
  • added c_array access functons to can::Frame
  • Contributors: Mathias Lüdtke

0.7.8 (2018-05-04)

  • Revert "pull make_shared into namespaces" This reverts commit 9b2cd05df76d223647ca81917d289ca6330cdee6.
  • Contributors: Mathias Lüdtke

0.7.7 (2018-05-04)

  • added types for all function objects
  • pull make_shared into namespaces
  • added types for all shared_ptrs
  • migrate to new classloader headers
  • throw bad_cast if datatype is not supported
  • special handling of std::bad_cast
  • address catkin_lint errors/warnings
  • removed IPC/SHM based sync masters
  • Contributors: Mathias Lüdtke

0.7.6 (2017-08-30)

0.7.5 (2017-05-29)

  • added EMCYHandler::resetErrors
  • added VectorHelper::callFunc generalized call templates
  • Contributors: Mathias Lüdtke

0.7.4 (2017-04-25)

0.7.3 (2017-04-25)

  • enforce boost::chrono-based timer
  • Contributors: Mathias Lüdtke

0.7.2 (2017-03-28)

  • fix: handle EMCY as error, not as warning
  • Contributors: Mathias Lüdtke

0.7.1 (2017-03-20)

  • refactored EMCY handling into separate layer
  • print EMCY to stdout
  • send node start on recover needed for external sync to work properly
  • pass halt on error unconditionally
  • added canopen_bcm_sync
  • implemented ExternalMaster
  • added object access services
  • implemented ObjectStorage::getStringReader
  • Contributors: Mathias Lüdtke

0.7.0 (2016-12-13)

0.6.5 (2016-12-10)

File truncated at 100 lines see the full file

Launch files

No launch files found

Messages

No message files found.

Services

No service files found

Plugins

Recent questions tagged canopen_master at Robotics Stack Exchange