Comments (4)
Hi @baozeng90,
It seems to be a problem with the processor word size. Are you using the 16bits TMS570 version? Currently, we only support 32bits processor or higher.
from micro-xrce-dds-client.
@lemunozm
1)It‘s 32bits.But my client(TMS570) is BIG ENDIANNESS.my agent is LITTLE ENDIANNESS.
2)I have modify config.h(#define BIG_ENDIAN 1)
3) In file basic.c (function ucdr_serialize_byte_2),UCDR_MACHINE_ENDIANNESS must be UCDR_LITTLE_ENDIANNESS!?There are some similar funtions.
4) I think my problem is related to deserialize ACK from agent.
5) Now I have no idea.
bool ucdr_serialize_byte_2(ucdrBuffer* mb, const ucdrEndianness endianness, const uint16_t* bytes)
{
uint32_t data_size = sizeof(uint16_t);
uint32_t alignment = ucdr_buffer_alignment(mb, data_size);
if(ucdr_check_buffer(mb, alignment + data_size))
{
mb->iterator += alignment;
if(UCDR_LITTLE_ENDIANNESS == endianness)
{
memcpy(mb->iterator, bytes, data_size);
}
else
{
uint8_t* bytes_pointer = (uint8_t*)bytes;
*mb->iterator = *(bytes_pointer + 1);
*(mb->iterator + 1) = *bytes_pointer;
}
mb->iterator += data_size;
mb->last_data_size = data_size;
}
return !mb->error;
}
from micro-xrce-dds-client.
Hi @baozeng90,
we are working on this problem.
This issue has a PR associated: #71
I'll let you know once the PR is accepted to master
from micro-xrce-dds-client.
The PR #71 with the solution is already merged in master
.
Please, set the variable CONFIG_BIG_ENDIANNESS
of the client.config
file to TRUE
to compile with the big endianness behavior.
from micro-xrce-dds-client.
Related Issues (20)
- An error occurred while creating an entity with the "UXR_REUSE" policy
- Agent has crashed when using UXR_REUSE flag on entity's creation HOT 10
- There is no unlock operation in the "uxr_prepare_output_stream" function HOT 3
- Miss the 1st one HOT 7
- Getting dlfcn.h file not found build error when Shared Memory Enabled HOT 6
- Shared Memory feature with Multiple Publishers and Subscribers within MCU is not working with Micro-XRCE-DDS-Client HOT 12
- How to create a shared memory example single session with multiple topics for pulishers and subscriber HOT 1
- SharedMemoryReqResp example not working on ESP32 Getting Assert Exception during test with freeRTOS HOT 1
- Doc Bug: Enabling BUILD_DOCUMENTATION results in Doxygen Error HOT 4
- Block bug: uxr_millis() returning 0 causes block in wait_session_status
- Agent Discovery
- Is there a direct way to communicate XRCE requesters and repliers and ROS-2 node via Micro-ROS agent HOT 6
- How to reconnect Agent? HOT 1
- Mutex not being released as expected HOT 7
- How to use SHM HOT 1
- Reconnect to Agent HOT 2
- UXR_CONFIG_CAN_TRANSPORT_MTU is not in defined by CMake HOT 5
- Multiple Clients cannot connect to same CAN Agent HOT 7
- client on MCU create session failed HOT 8
- Topic published from MCU client cannot be echoed by ROS2 HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from micro-xrce-dds-client.