Closed jabbershort closed 1 week ago
Hi @jabbershort
The reason you are not seeing notifications is most likely that they do not trigger when you think they trigger. On Gen3, the control modes are Angular Joystick, Cartesian Joystick, Angular trajectory, Cartesian trajectory and Waypoint trajectory (you can see them in the dropdown menu of the Speed Limits Advanced tab).
If you use any of the joysticks, either from the Xbox controller or from the controls in the Web App, the robot will automatically change - you can see the notification for the control mode change by clicking the notification bell in the Web app.
From my understanding, you are trying to track the active mapping on the Xbox controller, which is done using the MappingInfoTopic (OnNotificationMappingInfoTopic()).
See here for reference: https://github.com/Kinovarobotics/ros_kortex/blob/noetic-devel/kortex_driver/protos/Base.proto#L203 https://github.com/Kinovarobotics/ros_kortex/blob/d57a287cdc85031ae351089b82c71cb8cace16be/kortex_driver/protos/Base.proto#L1073-L1080
Description
The ControlConfig.OnNotificationControlModeTopic isn't publishing anything when control mode is changed. Also only provides high level information. Is there any other way to fetch how the arm is being controlled. My target is to be able to visualise the Xbox controller mode (i.e. cartesian, orientation or angular control and which joint is being controlled).
Version
At a minimum, provide the Kortex API and Kortex-enabled device versions.
KortexAPI : 2.5.0
Kortex Device : Gen3
Steps to reproduce
Based on the Notification example script edited as:
Code example
Expected behavior
The Control Mode should be published to log.