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

canopen_chain_node specialization for handling of canopen_402 motor devices. It facilitates interface abstraction with ros_control.

Additional Links

Maintainers

  • Mathias Lüdtke

Authors

  • Mathias Lüdtke

Overview

The canopen_motor_node package provides a ros_control interface to [canopen_402]] compliant motors. It is based on canopen_chain_node and inherits all its interfaces, so this site just focuses on the additional interfaces.

Concepts

controller manager

The node includes a controller_manager instance that can be used to spawn controller_interface compliant controllers. Depending on the motor device different interfaces are support.

For each joint a hardware_interface::JointStateHandle is registered with the position, velocity and effort of the specific drive. The actual value is determined by the conversion functions.

In addition handles for the following command interfaces are available if the given modes are supported by the device:

  • hardware_interface::PositionJointInterface:
  • Profiled Position
  • Interpolated Position
  • Cyclic Synchronous Position
  • hardware_interface::VelocityJointInterface:
  • Velocity
  • Profiled Velocity
  • Cyclic Synchronous Velocity
  • hardware_interface::EffortJointInterface:
  • Profiled Torque
  • Cyclic Synchronous Torque

joint limits

The output from the controller is limited by joint_limits_interface and not passed directly to the motor. The limits can be read from URDF or the ParameterServer: https://github.com/ros-controls/ros_control/wiki/joint_limits_interface.

If certain limits are specified, the driver registers appropriate handles for soft and saturation limits.

mode switching

The driver does support mode switching at run-time and mixed modes for different joints. In order to determine the mode, a special parameter “required_drive_mode” must be added to each controller. It should contain the CANopen 402 mode id.

Since mode switching might be restricted to specific drive states by the manufacturer, the drive state for mode switching can be specified for each mode.

unit conversions

The driver features muparser based conversion functions.

In addition to the predefined functions and operators, the following functions are available:

  • rad2deg(radians): convert from radians to degrees
  • deg2rad(degrees): convert from degrees to radians
  • norm(value, min, max): normalize value to the range [min, max)
  • smooth(value, old_value, alpha): exponential smoothing, returns alpha*val + (1.0-alpha)*old_val
  • avg(val1,val2,...): average functions that stops on the first NaN value

Further two constants are defined for convenience: pi and nan.

The conversion functions from ROS the device units can read the commands from the respective pos,vel and eff variables.

The conversion functions from device to ROS supports an extended notion with obj prefixes: E.g. obj6064 will read the actual position and obj6091sub1 will read the gear ration nominator.

Please note that you can write to these variables, but you should avoid it, these writes are not passed to the device anyway and will overwritten in the next call!

You can define more variables by just using them, they will be initialized to NaN values.

File truncated at 100 lines see the full file

CHANGELOG

Changelog for package canopen_motor_node

0.8.5 (2020-09-22)

0.8.4 (2020-08-22)

  • moved XmlRpcSettings to socketcan_interface
  • 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)

0.8.1 (2019-07-14)

  • Set C++ standard to c++14
  • inherit LimitsHandle from LimitsHandleBase
  • Contributors: Harsh Deshpande, Mathias Lüdtke

0.8.0 (2018-07-11)

  • migrated to std::function and std::bind
  • use std::isnan
  • migrated to std::atomic
  • migrated to std::unordered_map and std::unordered_set
  • migrated to std pointers
  • removed deprecated types
  • introduced HandleLayerSharedPtr
  • Contributors: Mathias Lüdtke

0.7.8 (2018-05-04)

0.7.7 (2018-05-04)

  • added types for all function objects
  • added types for all shared_ptrs
  • error if muparser is not available
  • address catkin_lint errors/warnings
  • Contributors: Mathias Lüdtke

0.7.6 (2017-08-30)

0.7.5 (2017-05-29)

0.7.4 (2017-04-25)

  • use portable boost::math::isnan
  • Contributors: Mathias Lüdtke

0.7.3 (2017-04-25)

  • use urdf::JointConstSharedPtr
  • Contributors: Mathias Lüdtke

0.7.2 (2017-03-28)

0.7.1 (2017-03-20)

  • Decouble RobotLayer by introducing HandleLayerBase
  • Split layers into different headers and compile units
  • do not call handleReadread in HandleLayer::handleRecover this prevents a race condition, it is not needed anyway.
  • protect ObjectVariables with mutex
  • added test for norm function
  • fix for joint limit handling
  • introduced per-controller enforce_limits parameter
  • implemented per-joint limits handling
  • check if hardware interface matches mode
  • implemented mixed-mode switching (#197)
  • introduced joint reference for *res_it
  • Contributors: Mathias Lüdtke, Michael Stoll

0.7.0 (2016-12-13)

0.6.5 (2016-12-10)

  • protect MotorChain setup with RosChain lock
  • Merge pull request #153 from ipa-mdl/deprecated-canswitch deprecated canSwitch
  • fix for issue #171
  • Merge pull request #168 from ipa-mdl/state-filters added filter chain for state values
  • do not start driver if filter config fails
  • added filter chain for state values
  • log control period settings
  • use update_period_ for controll unless use_realtime_period is set

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

No plugins found.

Recent questions tagged canopen_motor_node 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

canopen_chain_node specialization for handling of canopen_402 motor devices. It facilitates interface abstraction with ros_control.

Additional Links

Maintainers

  • Mathias Lüdtke

Authors

  • Mathias Lüdtke

Overview

The canopen_motor_node package provides a ros_control interface to [canopen_402]] compliant motors. It is based on canopen_chain_node and inherits all its interfaces, so this site just focuses on the additional interfaces.

Concepts

controller manager

The node includes a controller_manager instance that can be used to spawn controller_interface compliant controllers. Depending on the motor device different interfaces are support.

For each joint a hardware_interface::JointStateHandle is registered with the position, velocity and effort of the specific drive. The actual value is determined by the conversion functions.

In addition handles for the following command interfaces are available if the given modes are supported by the device:

  • hardware_interface::PositionJointInterface:
  • Profiled Position
  • Interpolated Position
  • Cyclic Synchronous Position
  • hardware_interface::VelocityJointInterface:
  • Velocity
  • Profiled Velocity
  • Cyclic Synchronous Velocity
  • hardware_interface::EffortJointInterface:
  • Profiled Torque
  • Cyclic Synchronous Torque

joint limits

The output from the controller is limited by joint_limits_interface and not passed directly to the motor. The limits can be read from URDF or the ParameterServer: https://github.com/ros-controls/ros_control/wiki/joint_limits_interface.

If certain limits are specified, the driver registers appropriate handles for soft and saturation limits.

mode switching

The driver does support mode switching at run-time and mixed modes for different joints. In order to determine the mode, a special parameter “required_drive_mode” must be added to each controller. It should contain the CANopen 402 mode id.

Since mode switching might be restricted to specific drive states by the manufacturer, the drive state for mode switching can be specified for each mode.

unit conversions

The driver features muparser based conversion functions.

In addition to the predefined functions and operators, the following functions are available:

  • rad2deg(radians): convert from radians to degrees
  • deg2rad(degrees): convert from degrees to radians
  • norm(value, min, max): normalize value to the range [min, max)
  • smooth(value, old_value, alpha): exponential smoothing, returns alpha*val + (1.0-alpha)*old_val
  • avg(val1,val2,...): average functions that stops on the first NaN value

Further two constants are defined for convenience: pi and nan.

The conversion functions from ROS the device units can read the commands from the respective pos,vel and eff variables.

The conversion functions from device to ROS supports an extended notion with obj prefixes: E.g. obj6064 will read the actual position and obj6091sub1 will read the gear ration nominator.

Please note that you can write to these variables, but you should avoid it, these writes are not passed to the device anyway and will overwritten in the next call!

You can define more variables by just using them, they will be initialized to NaN values.

File truncated at 100 lines see the full file

CHANGELOG

Changelog for package canopen_motor_node

0.8.5 (2020-09-22)

0.8.4 (2020-08-22)

  • moved XmlRpcSettings to socketcan_interface
  • 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)

0.8.1 (2019-07-14)

  • Set C++ standard to c++14
  • inherit LimitsHandle from LimitsHandleBase
  • Contributors: Harsh Deshpande, Mathias Lüdtke

0.8.0 (2018-07-11)

  • migrated to std::function and std::bind
  • use std::isnan
  • migrated to std::atomic
  • migrated to std::unordered_map and std::unordered_set
  • migrated to std pointers
  • removed deprecated types
  • introduced HandleLayerSharedPtr
  • Contributors: Mathias Lüdtke

0.7.8 (2018-05-04)

0.7.7 (2018-05-04)

  • added types for all function objects
  • added types for all shared_ptrs
  • error if muparser is not available
  • address catkin_lint errors/warnings
  • Contributors: Mathias Lüdtke

0.7.6 (2017-08-30)

0.7.5 (2017-05-29)

0.7.4 (2017-04-25)

  • use portable boost::math::isnan
  • Contributors: Mathias Lüdtke

0.7.3 (2017-04-25)

  • use urdf::JointConstSharedPtr
  • Contributors: Mathias Lüdtke

0.7.2 (2017-03-28)

0.7.1 (2017-03-20)

  • Decouble RobotLayer by introducing HandleLayerBase
  • Split layers into different headers and compile units
  • do not call handleReadread in HandleLayer::handleRecover this prevents a race condition, it is not needed anyway.
  • protect ObjectVariables with mutex
  • added test for norm function
  • fix for joint limit handling
  • introduced per-controller enforce_limits parameter
  • implemented per-joint limits handling
  • check if hardware interface matches mode
  • implemented mixed-mode switching (#197)
  • introduced joint reference for *res_it
  • Contributors: Mathias Lüdtke, Michael Stoll

0.7.0 (2016-12-13)

0.6.5 (2016-12-10)

  • protect MotorChain setup with RosChain lock
  • Merge pull request #153 from ipa-mdl/deprecated-canswitch deprecated canSwitch
  • fix for issue #171
  • Merge pull request #168 from ipa-mdl/state-filters added filter chain for state values
  • do not start driver if filter config fails
  • added filter chain for state values
  • log control period settings
  • use update_period_ for controll unless use_realtime_period is set

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

No plugins found.

Recent questions tagged canopen_motor_node 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

canopen_chain_node specialization for handling of canopen_402 motor devices. It facilitates interface abstraction with ros_control.

Additional Links

Maintainers

  • Mathias Lüdtke

Authors

  • Mathias Lüdtke

Overview

The canopen_motor_node package provides a ros_control interface to [canopen_402]] compliant motors. It is based on canopen_chain_node and inherits all its interfaces, so this site just focuses on the additional interfaces.

Concepts

controller manager

The node includes a controller_manager instance that can be used to spawn controller_interface compliant controllers. Depending on the motor device different interfaces are support.

For each joint a hardware_interface::JointStateHandle is registered with the position, velocity and effort of the specific drive. The actual value is determined by the conversion functions.

In addition handles for the following command interfaces are available if the given modes are supported by the device:

  • hardware_interface::PositionJointInterface:
  • Profiled Position
  • Interpolated Position
  • Cyclic Synchronous Position
  • hardware_interface::VelocityJointInterface:
  • Velocity
  • Profiled Velocity
  • Cyclic Synchronous Velocity
  • hardware_interface::EffortJointInterface:
  • Profiled Torque
  • Cyclic Synchronous Torque

joint limits

The output from the controller is limited by joint_limits_interface and not passed directly to the motor. The limits can be read from URDF or the ParameterServer: https://github.com/ros-controls/ros_control/wiki/joint_limits_interface.

If certain limits are specified, the driver registers appropriate handles for soft and saturation limits.

mode switching

The driver does support mode switching at run-time and mixed modes for different joints. In order to determine the mode, a special parameter “required_drive_mode” must be added to each controller. It should contain the CANopen 402 mode id.

Since mode switching might be restricted to specific drive states by the manufacturer, the drive state for mode switching can be specified for each mode.

unit conversions

The driver features muparser based conversion functions.

In addition to the predefined functions and operators, the following functions are available:

  • rad2deg(radians): convert from radians to degrees
  • deg2rad(degrees): convert from degrees to radians
  • norm(value, min, max): normalize value to the range [min, max)
  • smooth(value, old_value, alpha): exponential smoothing, returns alpha*val + (1.0-alpha)*old_val
  • avg(val1,val2,...): average functions that stops on the first NaN value

Further two constants are defined for convenience: pi and nan.

The conversion functions from ROS the device units can read the commands from the respective pos,vel and eff variables.

The conversion functions from device to ROS supports an extended notion with obj prefixes: E.g. obj6064 will read the actual position and obj6091sub1 will read the gear ration nominator.

Please note that you can write to these variables, but you should avoid it, these writes are not passed to the device anyway and will overwritten in the next call!

You can define more variables by just using them, they will be initialized to NaN values.

File truncated at 100 lines see the full file

CHANGELOG

Changelog for package canopen_motor_node

0.8.5 (2020-09-22)

0.8.4 (2020-08-22)

  • moved XmlRpcSettings to socketcan_interface
  • 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)

0.8.1 (2019-07-14)

  • Set C++ standard to c++14
  • inherit LimitsHandle from LimitsHandleBase
  • Contributors: Harsh Deshpande, Mathias Lüdtke

0.8.0 (2018-07-11)

  • migrated to std::function and std::bind
  • use std::isnan
  • migrated to std::atomic
  • migrated to std::unordered_map and std::unordered_set
  • migrated to std pointers
  • removed deprecated types
  • introduced HandleLayerSharedPtr
  • Contributors: Mathias Lüdtke

0.7.8 (2018-05-04)

0.7.7 (2018-05-04)

  • added types for all function objects
  • added types for all shared_ptrs
  • error if muparser is not available
  • address catkin_lint errors/warnings
  • Contributors: Mathias Lüdtke

0.7.6 (2017-08-30)

0.7.5 (2017-05-29)

0.7.4 (2017-04-25)

  • use portable boost::math::isnan
  • Contributors: Mathias Lüdtke

0.7.3 (2017-04-25)

  • use urdf::JointConstSharedPtr
  • Contributors: Mathias Lüdtke

0.7.2 (2017-03-28)

0.7.1 (2017-03-20)

  • Decouble RobotLayer by introducing HandleLayerBase
  • Split layers into different headers and compile units
  • do not call handleReadread in HandleLayer::handleRecover this prevents a race condition, it is not needed anyway.
  • protect ObjectVariables with mutex
  • added test for norm function
  • fix for joint limit handling
  • introduced per-controller enforce_limits parameter
  • implemented per-joint limits handling
  • check if hardware interface matches mode
  • implemented mixed-mode switching (#197)
  • introduced joint reference for *res_it
  • Contributors: Mathias Lüdtke, Michael Stoll

0.7.0 (2016-12-13)

0.6.5 (2016-12-10)

  • protect MotorChain setup with RosChain lock
  • Merge pull request #153 from ipa-mdl/deprecated-canswitch deprecated canSwitch
  • fix for issue #171
  • Merge pull request #168 from ipa-mdl/state-filters added filter chain for state values
  • do not start driver if filter config fails
  • added filter chain for state values
  • log control period settings
  • use update_period_ for controll unless use_realtime_period is set

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

No plugins found.

Recent questions tagged canopen_motor_node 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

canopen_chain_node specialization for handling of canopen_402 motor devices. It facilitates interface abstraction with ros_control.

Additional Links

Maintainers

  • Mathias Lüdtke

Authors

  • Mathias Lüdtke

Overview

The canopen_motor_node package provides a ros_control interface to [canopen_402]] compliant motors. It is based on canopen_chain_node and inherits all its interfaces, so this site just focuses on the additional interfaces.

Concepts

controller manager

The node includes a controller_manager instance that can be used to spawn controller_interface compliant controllers. Depending on the motor device different interfaces are support.

For each joint a hardware_interface::JointStateHandle is registered with the position, velocity and effort of the specific drive. The actual value is determined by the conversion functions.

In addition handles for the following command interfaces are available if the given modes are supported by the device:

  • hardware_interface::PositionJointInterface:
  • Profiled Position
  • Interpolated Position
  • Cyclic Synchronous Position
  • hardware_interface::VelocityJointInterface:
  • Velocity
  • Profiled Velocity
  • Cyclic Synchronous Velocity
  • hardware_interface::EffortJointInterface:
  • Profiled Torque
  • Cyclic Synchronous Torque

joint limits

The output from the controller is limited by joint_limits_interface and not passed directly to the motor. The limits can be read from URDF or the ParameterServer: https://github.com/ros-controls/ros_control/wiki/joint_limits_interface.

If certain limits are specified, the driver registers appropriate handles for soft and saturation limits.

mode switching

The driver does support mode switching at run-time and mixed modes for different joints. In order to determine the mode, a special parameter “required_drive_mode” must be added to each controller. It should contain the CANopen 402 mode id.

Since mode switching might be restricted to specific drive states by the manufacturer, the drive state for mode switching can be specified for each mode.

unit conversions

The driver features muparser based conversion functions.

In addition to the predefined functions and operators, the following functions are available:

  • rad2deg(radians): convert from radians to degrees
  • deg2rad(degrees): convert from degrees to radians
  • norm(value, min, max): normalize value to the range [min, max)
  • smooth(value, old_value, alpha): exponential smoothing, returns alpha*val + (1.0-alpha)*old_val
  • avg(val1,val2,...): average functions that stops on the first NaN value

Further two constants are defined for convenience: pi and nan.

The conversion functions from ROS the device units can read the commands from the respective pos,vel and eff variables.

The conversion functions from device to ROS supports an extended notion with obj prefixes: E.g. obj6064 will read the actual position and obj6091sub1 will read the gear ration nominator.

Please note that you can write to these variables, but you should avoid it, these writes are not passed to the device anyway and will overwritten in the next call!

You can define more variables by just using them, they will be initialized to NaN values.

File truncated at 100 lines see the full file

CHANGELOG

Changelog for package canopen_motor_node

0.8.5 (2020-09-22)

0.8.4 (2020-08-22)

  • moved XmlRpcSettings to socketcan_interface
  • 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)

0.8.1 (2019-07-14)

  • Set C++ standard to c++14
  • inherit LimitsHandle from LimitsHandleBase
  • Contributors: Harsh Deshpande, Mathias Lüdtke

0.8.0 (2018-07-11)

  • migrated to std::function and std::bind
  • use std::isnan
  • migrated to std::atomic
  • migrated to std::unordered_map and std::unordered_set
  • migrated to std pointers
  • removed deprecated types
  • introduced HandleLayerSharedPtr
  • Contributors: Mathias Lüdtke

0.7.8 (2018-05-04)

0.7.7 (2018-05-04)

  • added types for all function objects
  • added types for all shared_ptrs
  • error if muparser is not available
  • address catkin_lint errors/warnings
  • Contributors: Mathias Lüdtke

0.7.6 (2017-08-30)

0.7.5 (2017-05-29)

0.7.4 (2017-04-25)

  • use portable boost::math::isnan
  • Contributors: Mathias Lüdtke

0.7.3 (2017-04-25)

  • use urdf::JointConstSharedPtr
  • Contributors: Mathias Lüdtke

0.7.2 (2017-03-28)

0.7.1 (2017-03-20)

  • Decouble RobotLayer by introducing HandleLayerBase
  • Split layers into different headers and compile units
  • do not call handleReadread in HandleLayer::handleRecover this prevents a race condition, it is not needed anyway.
  • protect ObjectVariables with mutex
  • added test for norm function
  • fix for joint limit handling
  • introduced per-controller enforce_limits parameter
  • implemented per-joint limits handling
  • check if hardware interface matches mode
  • implemented mixed-mode switching (#197)
  • introduced joint reference for *res_it
  • Contributors: Mathias Lüdtke, Michael Stoll

0.7.0 (2016-12-13)

0.6.5 (2016-12-10)

  • protect MotorChain setup with RosChain lock
  • Merge pull request #153 from ipa-mdl/deprecated-canswitch deprecated canSwitch
  • fix for issue #171
  • Merge pull request #168 from ipa-mdl/state-filters added filter chain for state values
  • do not start driver if filter config fails
  • added filter chain for state values
  • log control period settings
  • use update_period_ for controll unless use_realtime_period is set

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

No plugins found.

Recent questions tagged canopen_motor_node 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

canopen_chain_node specialization for handling of canopen_402 motor devices. It facilitates interface abstraction with ros_control.

Additional Links

Maintainers

  • Mathias Lüdtke

Authors

  • Mathias Lüdtke

Overview

The canopen_motor_node package provides a ros_control interface to [canopen_402]] compliant motors. It is based on canopen_chain_node and inherits all its interfaces, so this site just focuses on the additional interfaces.

Concepts

controller manager

The node includes a controller_manager instance that can be used to spawn controller_interface compliant controllers. Depending on the motor device different interfaces are support.

For each joint a hardware_interface::JointStateHandle is registered with the position, velocity and effort of the specific drive. The actual value is determined by the conversion functions.

In addition handles for the following command interfaces are available if the given modes are supported by the device:

  • hardware_interface::PositionJointInterface:
  • Profiled Position
  • Interpolated Position
  • Cyclic Synchronous Position
  • hardware_interface::VelocityJointInterface:
  • Velocity
  • Profiled Velocity
  • Cyclic Synchronous Velocity
  • hardware_interface::EffortJointInterface:
  • Profiled Torque
  • Cyclic Synchronous Torque

joint limits

The output from the controller is limited by joint_limits_interface and not passed directly to the motor. The limits can be read from URDF or the ParameterServer: https://github.com/ros-controls/ros_control/wiki/joint_limits_interface.

If certain limits are specified, the driver registers appropriate handles for soft and saturation limits.

mode switching

The driver does support mode switching at run-time and mixed modes for different joints. In order to determine the mode, a special parameter “required_drive_mode” must be added to each controller. It should contain the CANopen 402 mode id.

Since mode switching might be restricted to specific drive states by the manufacturer, the drive state for mode switching can be specified for each mode.

unit conversions

The driver features muparser based conversion functions.

In addition to the predefined functions and operators, the following functions are available:

  • rad2deg(radians): convert from radians to degrees
  • deg2rad(degrees): convert from degrees to radians
  • norm(value, min, max): normalize value to the range [min, max)
  • smooth(value, old_value, alpha): exponential smoothing, returns alpha*val + (1.0-alpha)*old_val
  • avg(val1,val2,...): average functions that stops on the first NaN value

Further two constants are defined for convenience: pi and nan.

The conversion functions from ROS the device units can read the commands from the respective pos,vel and eff variables.

The conversion functions from device to ROS supports an extended notion with obj prefixes: E.g. obj6064 will read the actual position and obj6091sub1 will read the gear ration nominator.

Please note that you can write to these variables, but you should avoid it, these writes are not passed to the device anyway and will overwritten in the next call!

You can define more variables by just using them, they will be initialized to NaN values.

File truncated at 100 lines see the full file

CHANGELOG

Changelog for package canopen_motor_node

0.8.5 (2020-09-22)

0.8.4 (2020-08-22)

  • moved XmlRpcSettings to socketcan_interface
  • 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)

0.8.1 (2019-07-14)

  • Set C++ standard to c++14
  • inherit LimitsHandle from LimitsHandleBase
  • Contributors: Harsh Deshpande, Mathias Lüdtke

0.8.0 (2018-07-11)

  • migrated to std::function and std::bind
  • use std::isnan
  • migrated to std::atomic
  • migrated to std::unordered_map and std::unordered_set
  • migrated to std pointers
  • removed deprecated types
  • introduced HandleLayerSharedPtr
  • Contributors: Mathias Lüdtke

0.7.8 (2018-05-04)

0.7.7 (2018-05-04)

  • added types for all function objects
  • added types for all shared_ptrs
  • error if muparser is not available
  • address catkin_lint errors/warnings
  • Contributors: Mathias Lüdtke

0.7.6 (2017-08-30)

0.7.5 (2017-05-29)

0.7.4 (2017-04-25)

  • use portable boost::math::isnan
  • Contributors: Mathias Lüdtke

0.7.3 (2017-04-25)

  • use urdf::JointConstSharedPtr
  • Contributors: Mathias Lüdtke

0.7.2 (2017-03-28)

0.7.1 (2017-03-20)

  • Decouble RobotLayer by introducing HandleLayerBase
  • Split layers into different headers and compile units
  • do not call handleReadread in HandleLayer::handleRecover this prevents a race condition, it is not needed anyway.
  • protect ObjectVariables with mutex
  • added test for norm function
  • fix for joint limit handling
  • introduced per-controller enforce_limits parameter
  • implemented per-joint limits handling
  • check if hardware interface matches mode
  • implemented mixed-mode switching (#197)
  • introduced joint reference for *res_it
  • Contributors: Mathias Lüdtke, Michael Stoll

0.7.0 (2016-12-13)

0.6.5 (2016-12-10)

  • protect MotorChain setup with RosChain lock
  • Merge pull request #153 from ipa-mdl/deprecated-canswitch deprecated canSwitch
  • fix for issue #171
  • Merge pull request #168 from ipa-mdl/state-filters added filter chain for state values
  • do not start driver if filter config fails
  • added filter chain for state values
  • log control period settings
  • use update_period_ for controll unless use_realtime_period is set

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

No plugins found.

Recent questions tagged canopen_motor_node 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

canopen_chain_node specialization for handling of canopen_402 motor devices. It facilitates interface abstraction with ros_control.

Additional Links

Maintainers

  • Mathias Lüdtke

Authors

  • Mathias Lüdtke

Overview

The canopen_motor_node package provides a ros_control interface to [canopen_402]] compliant motors. It is based on canopen_chain_node and inherits all its interfaces, so this site just focuses on the additional interfaces.

Concepts

controller manager

The node includes a controller_manager instance that can be used to spawn controller_interface compliant controllers. Depending on the motor device different interfaces are support.

For each joint a hardware_interface::JointStateHandle is registered with the position, velocity and effort of the specific drive. The actual value is determined by the conversion functions.

In addition handles for the following command interfaces are available if the given modes are supported by the device:

  • hardware_interface::PositionJointInterface:
  • Profiled Position
  • Interpolated Position
  • Cyclic Synchronous Position
  • hardware_interface::VelocityJointInterface:
  • Velocity
  • Profiled Velocity
  • Cyclic Synchronous Velocity
  • hardware_interface::EffortJointInterface:
  • Profiled Torque
  • Cyclic Synchronous Torque

joint limits

The output from the controller is limited by joint_limits_interface and not passed directly to the motor. The limits can be read from URDF or the ParameterServer: https://github.com/ros-controls/ros_control/wiki/joint_limits_interface.

If certain limits are specified, the driver registers appropriate handles for soft and saturation limits.

mode switching

The driver does support mode switching at run-time and mixed modes for different joints. In order to determine the mode, a special parameter “required_drive_mode” must be added to each controller. It should contain the CANopen 402 mode id.

Since mode switching might be restricted to specific drive states by the manufacturer, the drive state for mode switching can be specified for each mode.

unit conversions

The driver features muparser based conversion functions.

In addition to the predefined functions and operators, the following functions are available:

  • rad2deg(radians): convert from radians to degrees
  • deg2rad(degrees): convert from degrees to radians
  • norm(value, min, max): normalize value to the range [min, max)
  • smooth(value, old_value, alpha): exponential smoothing, returns alpha*val + (1.0-alpha)*old_val
  • avg(val1,val2,...): average functions that stops on the first NaN value

Further two constants are defined for convenience: pi and nan.

The conversion functions from ROS the device units can read the commands from the respective pos,vel and eff variables.

The conversion functions from device to ROS supports an extended notion with obj prefixes: E.g. obj6064 will read the actual position and obj6091sub1 will read the gear ration nominator.

Please note that you can write to these variables, but you should avoid it, these writes are not passed to the device anyway and will overwritten in the next call!

You can define more variables by just using them, they will be initialized to NaN values.

File truncated at 100 lines see the full file

CHANGELOG

Changelog for package canopen_motor_node

0.8.5 (2020-09-22)

0.8.4 (2020-08-22)

  • moved XmlRpcSettings to socketcan_interface
  • 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)

0.8.1 (2019-07-14)

  • Set C++ standard to c++14
  • inherit LimitsHandle from LimitsHandleBase
  • Contributors: Harsh Deshpande, Mathias Lüdtke

0.8.0 (2018-07-11)

  • migrated to std::function and std::bind
  • use std::isnan
  • migrated to std::atomic
  • migrated to std::unordered_map and std::unordered_set
  • migrated to std pointers
  • removed deprecated types
  • introduced HandleLayerSharedPtr
  • Contributors: Mathias Lüdtke

0.7.8 (2018-05-04)

0.7.7 (2018-05-04)

  • added types for all function objects
  • added types for all shared_ptrs
  • error if muparser is not available
  • address catkin_lint errors/warnings
  • Contributors: Mathias Lüdtke

0.7.6 (2017-08-30)

0.7.5 (2017-05-29)

0.7.4 (2017-04-25)

  • use portable boost::math::isnan
  • Contributors: Mathias Lüdtke

0.7.3 (2017-04-25)

  • use urdf::JointConstSharedPtr
  • Contributors: Mathias Lüdtke

0.7.2 (2017-03-28)

0.7.1 (2017-03-20)

  • Decouble RobotLayer by introducing HandleLayerBase
  • Split layers into different headers and compile units
  • do not call handleReadread in HandleLayer::handleRecover this prevents a race condition, it is not needed anyway.
  • protect ObjectVariables with mutex
  • added test for norm function
  • fix for joint limit handling
  • introduced per-controller enforce_limits parameter
  • implemented per-joint limits handling
  • check if hardware interface matches mode
  • implemented mixed-mode switching (#197)
  • introduced joint reference for *res_it
  • Contributors: Mathias Lüdtke, Michael Stoll

0.7.0 (2016-12-13)

0.6.5 (2016-12-10)

  • protect MotorChain setup with RosChain lock
  • Merge pull request #153 from ipa-mdl/deprecated-canswitch deprecated canSwitch
  • fix for issue #171
  • Merge pull request #168 from ipa-mdl/state-filters added filter chain for state values
  • do not start driver if filter config fails
  • added filter chain for state values
  • log control period settings
  • use update_period_ for controll unless use_realtime_period is set

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

No plugins found.

Recent questions tagged canopen_motor_node 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

canopen_chain_node specialization for handling of canopen_402 motor devices. It facilitates interface abstraction with ros_control.

Additional Links

Maintainers

  • Mathias Lüdtke

Authors

  • Mathias Lüdtke

Overview

The canopen_motor_node package provides a ros_control interface to [canopen_402]] compliant motors. It is based on canopen_chain_node and inherits all its interfaces, so this site just focuses on the additional interfaces.

Concepts

controller manager

The node includes a controller_manager instance that can be used to spawn controller_interface compliant controllers. Depending on the motor device different interfaces are support.

For each joint a hardware_interface::JointStateHandle is registered with the position, velocity and effort of the specific drive. The actual value is determined by the conversion functions.

In addition handles for the following command interfaces are available if the given modes are supported by the device:

  • hardware_interface::PositionJointInterface:
  • Profiled Position
  • Interpolated Position
  • Cyclic Synchronous Position
  • hardware_interface::VelocityJointInterface:
  • Velocity
  • Profiled Velocity
  • Cyclic Synchronous Velocity
  • hardware_interface::EffortJointInterface:
  • Profiled Torque
  • Cyclic Synchronous Torque

joint limits

The output from the controller is limited by joint_limits_interface and not passed directly to the motor. The limits can be read from URDF or the ParameterServer: https://github.com/ros-controls/ros_control/wiki/joint_limits_interface.

If certain limits are specified, the driver registers appropriate handles for soft and saturation limits.

mode switching

The driver does support mode switching at run-time and mixed modes for different joints. In order to determine the mode, a special parameter “required_drive_mode” must be added to each controller. It should contain the CANopen 402 mode id.

Since mode switching might be restricted to specific drive states by the manufacturer, the drive state for mode switching can be specified for each mode.

unit conversions

The driver features muparser based conversion functions.

In addition to the predefined functions and operators, the following functions are available:

  • rad2deg(radians): convert from radians to degrees
  • deg2rad(degrees): convert from degrees to radians
  • norm(value, min, max): normalize value to the range [min, max)
  • smooth(value, old_value, alpha): exponential smoothing, returns alpha*val + (1.0-alpha)*old_val
  • avg(val1,val2,...): average functions that stops on the first NaN value

Further two constants are defined for convenience: pi and nan.

The conversion functions from ROS the device units can read the commands from the respective pos,vel and eff variables.

The conversion functions from device to ROS supports an extended notion with obj prefixes: E.g. obj6064 will read the actual position and obj6091sub1 will read the gear ration nominator.

Please note that you can write to these variables, but you should avoid it, these writes are not passed to the device anyway and will overwritten in the next call!

You can define more variables by just using them, they will be initialized to NaN values.

File truncated at 100 lines see the full file

CHANGELOG

Changelog for package canopen_motor_node

0.8.5 (2020-09-22)

0.8.4 (2020-08-22)

  • moved XmlRpcSettings to socketcan_interface
  • 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)

0.8.1 (2019-07-14)

  • Set C++ standard to c++14
  • inherit LimitsHandle from LimitsHandleBase
  • Contributors: Harsh Deshpande, Mathias Lüdtke

0.8.0 (2018-07-11)

  • migrated to std::function and std::bind
  • use std::isnan
  • migrated to std::atomic
  • migrated to std::unordered_map and std::unordered_set
  • migrated to std pointers
  • removed deprecated types
  • introduced HandleLayerSharedPtr
  • Contributors: Mathias Lüdtke

0.7.8 (2018-05-04)

0.7.7 (2018-05-04)

  • added types for all function objects
  • added types for all shared_ptrs
  • error if muparser is not available
  • address catkin_lint errors/warnings
  • Contributors: Mathias Lüdtke

0.7.6 (2017-08-30)

0.7.5 (2017-05-29)

0.7.4 (2017-04-25)

  • use portable boost::math::isnan
  • Contributors: Mathias Lüdtke

0.7.3 (2017-04-25)

  • use urdf::JointConstSharedPtr
  • Contributors: Mathias Lüdtke

0.7.2 (2017-03-28)

0.7.1 (2017-03-20)

  • Decouble RobotLayer by introducing HandleLayerBase
  • Split layers into different headers and compile units
  • do not call handleReadread in HandleLayer::handleRecover this prevents a race condition, it is not needed anyway.
  • protect ObjectVariables with mutex
  • added test for norm function
  • fix for joint limit handling
  • introduced per-controller enforce_limits parameter
  • implemented per-joint limits handling
  • check if hardware interface matches mode
  • implemented mixed-mode switching (#197)
  • introduced joint reference for *res_it
  • Contributors: Mathias Lüdtke, Michael Stoll

0.7.0 (2016-12-13)

0.6.5 (2016-12-10)

  • protect MotorChain setup with RosChain lock
  • Merge pull request #153 from ipa-mdl/deprecated-canswitch deprecated canSwitch
  • fix for issue #171
  • Merge pull request #168 from ipa-mdl/state-filters added filter chain for state values
  • do not start driver if filter config fails
  • added filter chain for state values
  • log control period settings
  • use update_period_ for controll unless use_realtime_period is set

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

No plugins found.

Recent questions tagged canopen_motor_node 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

canopen_chain_node specialization for handling of canopen_402 motor devices. It facilitates interface abstraction with ros_control.

Additional Links

Maintainers

  • Mathias Lüdtke

Authors

  • Mathias Lüdtke

Overview

The canopen_motor_node package provides a ros_control interface to [canopen_402]] compliant motors. It is based on canopen_chain_node and inherits all its interfaces, so this site just focuses on the additional interfaces.

Concepts

controller manager

The node includes a controller_manager instance that can be used to spawn controller_interface compliant controllers. Depending on the motor device different interfaces are support.

For each joint a hardware_interface::JointStateHandle is registered with the position, velocity and effort of the specific drive. The actual value is determined by the conversion functions.

In addition handles for the following command interfaces are available if the given modes are supported by the device:

  • hardware_interface::PositionJointInterface:
  • Profiled Position
  • Interpolated Position
  • Cyclic Synchronous Position
  • hardware_interface::VelocityJointInterface:
  • Velocity
  • Profiled Velocity
  • Cyclic Synchronous Velocity
  • hardware_interface::EffortJointInterface:
  • Profiled Torque
  • Cyclic Synchronous Torque

joint limits

The output from the controller is limited by joint_limits_interface and not passed directly to the motor. The limits can be read from URDF or the ParameterServer: https://github.com/ros-controls/ros_control/wiki/joint_limits_interface.

If certain limits are specified, the driver registers appropriate handles for soft and saturation limits.

mode switching

The driver does support mode switching at run-time and mixed modes for different joints. In order to determine the mode, a special parameter “required_drive_mode” must be added to each controller. It should contain the CANopen 402 mode id.

Since mode switching might be restricted to specific drive states by the manufacturer, the drive state for mode switching can be specified for each mode.

unit conversions

The driver features muparser based conversion functions.

In addition to the predefined functions and operators, the following functions are available:

  • rad2deg(radians): convert from radians to degrees
  • deg2rad(degrees): convert from degrees to radians
  • norm(value, min, max): normalize value to the range [min, max)
  • smooth(value, old_value, alpha): exponential smoothing, returns alpha*val + (1.0-alpha)*old_val
  • avg(val1,val2,...): average functions that stops on the first NaN value

Further two constants are defined for convenience: pi and nan.

The conversion functions from ROS the device units can read the commands from the respective pos,vel and eff variables.

The conversion functions from device to ROS supports an extended notion with obj prefixes: E.g. obj6064 will read the actual position and obj6091sub1 will read the gear ration nominator.

Please note that you can write to these variables, but you should avoid it, these writes are not passed to the device anyway and will overwritten in the next call!

You can define more variables by just using them, they will be initialized to NaN values.

File truncated at 100 lines see the full file

CHANGELOG

Changelog for package canopen_motor_node

0.8.5 (2020-09-22)

0.8.4 (2020-08-22)

  • moved XmlRpcSettings to socketcan_interface
  • 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)

0.8.1 (2019-07-14)

  • Set C++ standard to c++14
  • inherit LimitsHandle from LimitsHandleBase
  • Contributors: Harsh Deshpande, Mathias Lüdtke

0.8.0 (2018-07-11)

  • migrated to std::function and std::bind
  • use std::isnan
  • migrated to std::atomic
  • migrated to std::unordered_map and std::unordered_set
  • migrated to std pointers
  • removed deprecated types
  • introduced HandleLayerSharedPtr
  • Contributors: Mathias Lüdtke

0.7.8 (2018-05-04)

0.7.7 (2018-05-04)

  • added types for all function objects
  • added types for all shared_ptrs
  • error if muparser is not available
  • address catkin_lint errors/warnings
  • Contributors: Mathias Lüdtke

0.7.6 (2017-08-30)

0.7.5 (2017-05-29)

0.7.4 (2017-04-25)

  • use portable boost::math::isnan
  • Contributors: Mathias Lüdtke

0.7.3 (2017-04-25)

  • use urdf::JointConstSharedPtr
  • Contributors: Mathias Lüdtke

0.7.2 (2017-03-28)

0.7.1 (2017-03-20)

  • Decouble RobotLayer by introducing HandleLayerBase
  • Split layers into different headers and compile units
  • do not call handleReadread in HandleLayer::handleRecover this prevents a race condition, it is not needed anyway.
  • protect ObjectVariables with mutex
  • added test for norm function
  • fix for joint limit handling
  • introduced per-controller enforce_limits parameter
  • implemented per-joint limits handling
  • check if hardware interface matches mode
  • implemented mixed-mode switching (#197)
  • introduced joint reference for *res_it
  • Contributors: Mathias Lüdtke, Michael Stoll

0.7.0 (2016-12-13)

0.6.5 (2016-12-10)

  • protect MotorChain setup with RosChain lock
  • Merge pull request #153 from ipa-mdl/deprecated-canswitch deprecated canSwitch
  • fix for issue #171
  • Merge pull request #168 from ipa-mdl/state-filters added filter chain for state values
  • do not start driver if filter config fails
  • added filter chain for state values
  • log control period settings
  • use update_period_ for controll unless use_realtime_period is set

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

No plugins found.

Recent questions tagged canopen_motor_node 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

canopen_chain_node specialization for handling of canopen_402 motor devices. It facilitates interface abstraction with ros_control.

Additional Links

Maintainers

  • Mathias Lüdtke

Authors

  • Mathias Lüdtke

Overview

The canopen_motor_node package provides a ros_control interface to [canopen_402]] compliant motors. It is based on canopen_chain_node and inherits all its interfaces, so this site just focuses on the additional interfaces.

Concepts

controller manager

The node includes a controller_manager instance that can be used to spawn controller_interface compliant controllers. Depending on the motor device different interfaces are support.

For each joint a hardware_interface::JointStateHandle is registered with the position, velocity and effort of the specific drive. The actual value is determined by the conversion functions.

In addition handles for the following command interfaces are available if the given modes are supported by the device:

  • hardware_interface::PositionJointInterface:
  • Profiled Position
  • Interpolated Position
  • Cyclic Synchronous Position
  • hardware_interface::VelocityJointInterface:
  • Velocity
  • Profiled Velocity
  • Cyclic Synchronous Velocity
  • hardware_interface::EffortJointInterface:
  • Profiled Torque
  • Cyclic Synchronous Torque

joint limits

The output from the controller is limited by joint_limits_interface and not passed directly to the motor. The limits can be read from URDF or the ParameterServer: https://github.com/ros-controls/ros_control/wiki/joint_limits_interface.

If certain limits are specified, the driver registers appropriate handles for soft and saturation limits.

mode switching

The driver does support mode switching at run-time and mixed modes for different joints. In order to determine the mode, a special parameter “required_drive_mode” must be added to each controller. It should contain the CANopen 402 mode id.

Since mode switching might be restricted to specific drive states by the manufacturer, the drive state for mode switching can be specified for each mode.

unit conversions

The driver features muparser based conversion functions.

In addition to the predefined functions and operators, the following functions are available:

  • rad2deg(radians): convert from radians to degrees
  • deg2rad(degrees): convert from degrees to radians
  • norm(value, min, max): normalize value to the range [min, max)
  • smooth(value, old_value, alpha): exponential smoothing, returns alpha*val + (1.0-alpha)*old_val
  • avg(val1,val2,...): average functions that stops on the first NaN value

Further two constants are defined for convenience: pi and nan.

The conversion functions from ROS the device units can read the commands from the respective pos,vel and eff variables.

The conversion functions from device to ROS supports an extended notion with obj prefixes: E.g. obj6064 will read the actual position and obj6091sub1 will read the gear ration nominator.

Please note that you can write to these variables, but you should avoid it, these writes are not passed to the device anyway and will overwritten in the next call!

You can define more variables by just using them, they will be initialized to NaN values.

File truncated at 100 lines see the full file

CHANGELOG

Changelog for package canopen_motor_node

0.8.5 (2020-09-22)

0.8.4 (2020-08-22)

  • moved XmlRpcSettings to socketcan_interface
  • 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)

0.8.1 (2019-07-14)

  • Set C++ standard to c++14
  • inherit LimitsHandle from LimitsHandleBase
  • Contributors: Harsh Deshpande, Mathias Lüdtke

0.8.0 (2018-07-11)

  • migrated to std::function and std::bind
  • use std::isnan
  • migrated to std::atomic
  • migrated to std::unordered_map and std::unordered_set
  • migrated to std pointers
  • removed deprecated types
  • introduced HandleLayerSharedPtr
  • Contributors: Mathias Lüdtke

0.7.8 (2018-05-04)

0.7.7 (2018-05-04)

  • added types for all function objects
  • added types for all shared_ptrs
  • error if muparser is not available
  • address catkin_lint errors/warnings
  • Contributors: Mathias Lüdtke

0.7.6 (2017-08-30)

0.7.5 (2017-05-29)

0.7.4 (2017-04-25)

  • use portable boost::math::isnan
  • Contributors: Mathias Lüdtke

0.7.3 (2017-04-25)

  • use urdf::JointConstSharedPtr
  • Contributors: Mathias Lüdtke

0.7.2 (2017-03-28)

0.7.1 (2017-03-20)

  • Decouble RobotLayer by introducing HandleLayerBase
  • Split layers into different headers and compile units
  • do not call handleReadread in HandleLayer::handleRecover this prevents a race condition, it is not needed anyway.
  • protect ObjectVariables with mutex
  • added test for norm function
  • fix for joint limit handling
  • introduced per-controller enforce_limits parameter
  • implemented per-joint limits handling
  • check if hardware interface matches mode
  • implemented mixed-mode switching (#197)
  • introduced joint reference for *res_it
  • Contributors: Mathias Lüdtke, Michael Stoll

0.7.0 (2016-12-13)

0.6.5 (2016-12-10)

  • protect MotorChain setup with RosChain lock
  • Merge pull request #153 from ipa-mdl/deprecated-canswitch deprecated canSwitch
  • fix for issue #171
  • Merge pull request #168 from ipa-mdl/state-filters added filter chain for state values
  • do not start driver if filter config fails
  • added filter chain for state values
  • log control period settings
  • use update_period_ for controll unless use_realtime_period is set

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

No plugins found.

Recent questions tagged canopen_motor_node 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

canopen_chain_node specialization for handling of canopen_402 motor devices. It facilitates interface abstraction with ros_control.

Additional Links

Maintainers

  • Mathias Lüdtke

Authors

  • Mathias Lüdtke

Overview

The canopen_motor_node package provides a ros_control interface to [canopen_402]] compliant motors. It is based on canopen_chain_node and inherits all its interfaces, so this site just focuses on the additional interfaces.

Concepts

controller manager

The node includes a controller_manager instance that can be used to spawn controller_interface compliant controllers. Depending on the motor device different interfaces are support.

For each joint a hardware_interface::JointStateHandle is registered with the position, velocity and effort of the specific drive. The actual value is determined by the conversion functions.

In addition handles for the following command interfaces are available if the given modes are supported by the device:

  • hardware_interface::PositionJointInterface:
  • Profiled Position
  • Interpolated Position
  • Cyclic Synchronous Position
  • hardware_interface::VelocityJointInterface:
  • Velocity
  • Profiled Velocity
  • Cyclic Synchronous Velocity
  • hardware_interface::EffortJointInterface:
  • Profiled Torque
  • Cyclic Synchronous Torque

joint limits

The output from the controller is limited by joint_limits_interface and not passed directly to the motor. The limits can be read from URDF or the ParameterServer: https://github.com/ros-controls/ros_control/wiki/joint_limits_interface.

If certain limits are specified, the driver registers appropriate handles for soft and saturation limits.

mode switching

The driver does support mode switching at run-time and mixed modes for different joints. In order to determine the mode, a special parameter “required_drive_mode” must be added to each controller. It should contain the CANopen 402 mode id.

Since mode switching might be restricted to specific drive states by the manufacturer, the drive state for mode switching can be specified for each mode.

unit conversions

The driver features muparser based conversion functions.

In addition to the predefined functions and operators, the following functions are available:

  • rad2deg(radians): convert from radians to degrees
  • deg2rad(degrees): convert from degrees to radians
  • norm(value, min, max): normalize value to the range [min, max)
  • smooth(value, old_value, alpha): exponential smoothing, returns alpha*val + (1.0-alpha)*old_val
  • avg(val1,val2,...): average functions that stops on the first NaN value

Further two constants are defined for convenience: pi and nan.

The conversion functions from ROS the device units can read the commands from the respective pos,vel and eff variables.

The conversion functions from device to ROS supports an extended notion with obj prefixes: E.g. obj6064 will read the actual position and obj6091sub1 will read the gear ration nominator.

Please note that you can write to these variables, but you should avoid it, these writes are not passed to the device anyway and will overwritten in the next call!

You can define more variables by just using them, they will be initialized to NaN values.

File truncated at 100 lines see the full file

CHANGELOG

Changelog for package canopen_motor_node

0.8.5 (2020-09-22)

0.8.4 (2020-08-22)

  • moved XmlRpcSettings to socketcan_interface
  • 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)

0.8.1 (2019-07-14)

  • Set C++ standard to c++14
  • inherit LimitsHandle from LimitsHandleBase
  • Contributors: Harsh Deshpande, Mathias Lüdtke

0.8.0 (2018-07-11)

  • migrated to std::function and std::bind
  • use std::isnan
  • migrated to std::atomic
  • migrated to std::unordered_map and std::unordered_set
  • migrated to std pointers
  • removed deprecated types
  • introduced HandleLayerSharedPtr
  • Contributors: Mathias Lüdtke

0.7.8 (2018-05-04)

0.7.7 (2018-05-04)

  • added types for all function objects
  • added types for all shared_ptrs
  • error if muparser is not available
  • address catkin_lint errors/warnings
  • Contributors: Mathias Lüdtke

0.7.6 (2017-08-30)

0.7.5 (2017-05-29)

0.7.4 (2017-04-25)

  • use portable boost::math::isnan
  • Contributors: Mathias Lüdtke

0.7.3 (2017-04-25)

  • use urdf::JointConstSharedPtr
  • Contributors: Mathias Lüdtke

0.7.2 (2017-03-28)

0.7.1 (2017-03-20)

  • Decouble RobotLayer by introducing HandleLayerBase
  • Split layers into different headers and compile units
  • do not call handleReadread in HandleLayer::handleRecover this prevents a race condition, it is not needed anyway.
  • protect ObjectVariables with mutex
  • added test for norm function
  • fix for joint limit handling
  • introduced per-controller enforce_limits parameter
  • implemented per-joint limits handling
  • check if hardware interface matches mode
  • implemented mixed-mode switching (#197)
  • introduced joint reference for *res_it
  • Contributors: Mathias Lüdtke, Michael Stoll

0.7.0 (2016-12-13)

0.6.5 (2016-12-10)

  • protect MotorChain setup with RosChain lock
  • Merge pull request #153 from ipa-mdl/deprecated-canswitch deprecated canSwitch
  • fix for issue #171
  • Merge pull request #168 from ipa-mdl/state-filters added filter chain for state values
  • do not start driver if filter config fails
  • added filter chain for state values
  • log control period settings
  • use update_period_ for controll unless use_realtime_period is set

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

No plugins found.

Recent questions tagged canopen_motor_node at Robotics Stack Exchange