Closed suguruhamada1003910 closed 2 years ago
You can find default commissioning files in this repository: https://github.com/ezWheelSAS/swd-starter-kit-config/tree/main/commissioning
I did commissioning with it. Result is below.
swd_sk@C-Latitude-7280:~/ros_ws/src/swd-starter-kit-config/commissioning$ python3 swd_left_4_commissioning.py
Traceback (most recent call last):
File "swd_left_4_commissioning.py", line 7, in <module>
import commissioning
File "/home/swd_sk/ros_ws/src/swd-starter-kit-config/commissioning/commissioning.py", line 22, in <module>
from smcdbusclient.can_open import CANOpenDBusClient
ModuleNotFoundError: No module named 'smcdbusclient.can_open'
There are some *.py files in /opt/ezw/usr/lib/smcdbusclient but can_open.py does not exist. I am using swd-services v0.1.2 because I am using ROS1. Explanation of swd-services version
Is it causing problem?
You can use V1.0.0 version of commissioning in your case.
Otherwise, using ROS1 you can upgrade swd-services to 0.2.x and ROS controller to version > 3.0.0 (https://github.com/ezWheelSAS/swd_ros_controllers/releases)
You can use V1.0.0 version of commissioning in your case.
OK. I understand that files I used have no problem.
Otherwise, using ROS1 you can upgrade swd-services to 0.2.x and ROS controller to version > 3.0.0 (https://github.com/ezWheelSAS/swd_ros_controllers/releases)
I have two questions.
ros1 version (>=3.0.0) are still compliant with ROS1. The update of the controller v3.2.0 enables to use ROS1 and ROS2
The previous commissioning file use the old swd-service version (0.1.x). The new version of the commissioning use the new version of swd-service (0.2.x)
I understand. Thank you so much.
- ros1 version (>=3.0.0) are still compliant with ROS1. The update of the controller v3.2.0 enables to use ROS1 and ROS2
Does it mean that this source code can be built with catkin comand and colcon command. Is it write? Then, what is the difference between "https://github.com/ezWheelSAS/swd_ros_controllers" and "https://github.com/ezWheelSAS/swd_ros2_controllers"?
Hi @suguruhamada1003910 ,
The answer is no.
The both version of the controllers do the same thing. But as the ROS1 and ROS2 C++ API are différents, we have to maintain two source code separately.
For now, ROS1 3.3.0 controller is equals in term of capability to ROS2 1.4.1 controller.
@GMezWheel
Thank you for reply. In my understanding, if I communicate between "https://github.com/ezWheelSAS/swd_ros_controllers" and another ROS2 node, I needs ros1_bridge. It is right? If it is wrong, how can I use "https://github.com/ezWheelSAS/swd_ros_controllers" in ROS2 system?
You're right, you have to use ros1_bridge in order to communicate whith ROS2 system.
Thanks!!
I did commissioning with v1.0.0 because node ID was initialized as 0x10. Then, node ID is modified to 0x04 and 0x05 but the behavior is strange now.
SLS and STO is not detected properly. Specifically, when I execute starter-kit.launch, firstly, SLS is 0. Therefore, SWD Core is not running. After that, when I hold my hand in front of the SE2L, SLS becomes 1 and SWD Core is running. And a few minutes later, STO repeats 0 and 1.
I do not know whether this problem depends commissioning or not. However, this problem occurs after commissioning.
Can I get commissioning files for Starter Kit?