cancel
Showing results for 
Search instead for 
Did you mean: 
SOLVED

Command drive from C++

Command drive from C++

redford
Long-established Member

Actually, this is what I want to try (axsPosCmd is just an example):

redford_0-1697031752112.png

I searched for this in the SDK and came across this:

redford_1-1697031801372.png

I am not sure if the mockup folders should be the "interface" for a user app. When including the mock_axs_object.h (this one seemed interesting to me for a start), I had to add more include paths:

redford_2-1697031881537.png

However, I failed due to non-existent headers with obvious kinematics reference, which I cannot find in the SDK:

redford_3-1697031938424.png

I need further assistance here. While searching for BundleIF I came across a few entries, but I have not found or overlooked a general introduction to the topic.

Thanks!

 

 

1 REPLY 1

nickH
Community Moderator
Community Moderator

Hi @redford 

The BundleIF is a interface you can only use from a RT-Bundle. This interface can't be used from a normal SDK sample (snap). To learn more about the RT-SDK see the FAQ on the SDK

But there is also a way to send commands to the ctrlX Motion App from the "normal SDK snaps". Here you just use the ctrlX Data Layer Interface of the Motion App. In the documentation of the command you mentioned you will also find how to execute this command via the ctrlX Data Layer interface (link). 

I would recommend you to look at a Data Layer Client example from the ctrlX SDK and modify it to send a create request to this Data Layer path "/motion/axs/<axs_name>/cmd/pos-abs". The Variant you need to send is a Complex Data Type (FlatBuffer) of the type AxsCmdPosData.

Best regards,

Nick

Icon--AD-black-48x48Icon--address-consumer-data-black-48x48Icon--appointment-black-48x48Icon--back-left-black-48x48Icon--calendar-black-48x48Icon--center-alignedIcon--Checkbox-checkIcon--clock-black-48x48Icon--close-black-48x48Icon--compare-black-48x48Icon--confirmation-black-48x48Icon--dealer-details-black-48x48Icon--delete-black-48x48Icon--delivery-black-48x48Icon--down-black-48x48Icon--download-black-48x48Ic-OverlayAlertIcon--externallink-black-48x48Icon-Filledforward-right_adjustedIcon--grid-view-black-48x48IC_gd_Check-Circle170821_Icons_Community170823_Bosch_Icons170823_Bosch_Icons170821_Icons_CommunityIC-logout170821_Icons_Community170825_Bosch_Icons170821_Icons_CommunityIC-shopping-cart2170821_Icons_CommunityIC-upIC_UserIcon--imageIcon--info-i-black-48x48Icon--left-alignedIcon--Less-minimize-black-48x48Icon-FilledIcon--List-Check-grennIcon--List-Check-blackIcon--List-Cross-blackIcon--list-view-mobile-black-48x48Icon--list-view-black-48x48Icon--More-Maximize-black-48x48Icon--my-product-black-48x48Icon--newsletter-black-48x48Icon--payment-black-48x48Icon--print-black-48x48Icon--promotion-black-48x48Icon--registration-black-48x48Icon--Reset-black-48x48Icon--right-alignedshare-circle1Icon--share-black-48x48Icon--shopping-bag-black-48x48Icon-shopping-cartIcon--start-play-black-48x48Icon--store-locator-black-48x48Ic-OverlayAlertIcon--summary-black-48x48tumblrIcon-FilledvineIc-OverlayAlertwhishlist