Closed suguruhamada1003910 closed 2 years ago
I also installed swd-system-config-2wheels.
Hi @suguruhamada1003910 ,
If you start manually swd_diff_drive_controller, you have to export DBus session environment variables:
https://github.com/ezWheelSAS/swd_ros_controllers/#usage-on-a-swd-starter-kit
export $(cat /tmp/SYSTEMCTL_dbus.id)
Otherwise, DBus error at startup:
2022-10-28 11:40:58;;SMCDS;ERROR;init;83;DBusClientDelegate;Checking DBus proxy availability timeout (120s) for proxy commonapi.ezw.smcservice.swd_right;
NOTA: remote.py found it by itself:
atmobi@atmobi-box:~$ python3 /opt/ezw/usr/sbin/remote.py swd_right
SYSTEMCTL_dbus.id detected
@GMezWheel
Thank you for reply. I will try it. By the way, how does SWD Starterkit export it? I want to connect IPC and SWD automatically when power is ON.
The automatic export of DBus session (if exists) is made by ezw-ros-bringup.service.
NOTA : if the IPC has already a DBus window manager session, the ezw-dbus-user-session.service can be disable. Thus, by default, swd_diff_drive_controller wil use DBus window manager session (no need to export DBus session environment variables).
process 39532: arguments to dbus_set_error_from_message() were incorrect, assertion "(error) == NULL || !dbus_error_is_set ((error))" failed in file dbus-message.c line 3938.
This is normally a bug in some application using the D-Bus library.
D-Bus not built with -rdynamic so unable to print a backtrace
I got new error message. Do you have any solution?
The dbus library is not the right one. Set "export LD_LIBRARY_PATH=/opt/ezw/usr/lib" before running application.
If the IPC has a window manager installed, there is already a DBus session for it. Thus, remove and don't create /tmp/SYSTEMCTL_dbus.id file. Then :
process 39532: arguments to dbus_set_error_from_message() were incorrect, assertion "(error) == NULL || !dbus_error_is_set ((error))" failed in file dbus-message.c line 3938.
This is normally a bug in some application using the D-Bus library.
D-Bus not built with -rdynamic so unable to print a backtrace
I did not know the cause of this problem. I cannot resolve it. However, swd_diff_drive_controller.launch succeeded with other PC. So I close this.
I bought SWD Starterkit and it ran properly. Then, I installed swd-services v0.2.7 and swd-ros-controllers v3.3.0 with apt command. SWD do not run properly now.
Information is below.
candump.txt