You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is thread is created to discuss issues facing on shared memory request response method
I am facing below issue at uxr_run_session_time
Here is my code . Could you please check and let me know anything i am missing
getting sometimes error at uxr_buffer_create_entity also as below
// Copyright 2017 Proyectos y Sistemas de Mantenimiento SL (eProsima).
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
#include "freertos/FreeRTOS.h"
#include "freertos/task.h"
//pin micro-ros task in APP_CPU to make PRO_CPU to deal with wifi:
xTaskCreate(micro_ros_task,
"uros_task",
CONFIG_MICRO_ROS_APP_STACK,
NULL,
CONFIG_MICRO_ROS_APP_TASK_PRIO,
NULL);
}
Here is the setting of colon.meta
The text was updated successfully, but these errors were encountered:
ManvithRaj
changed the title
SharedMemoryReqResp example not working on ESP32 Getting Exception during test
SharedMemoryReqResp example not working on ESP32 Getting Assert Exception during test
Dec 27, 2022
ManvithRaj
changed the title
SharedMemoryReqResp example not working on ESP32 Getting Assert Exception during test
SharedMemoryReqResp example not working on ESP32 Getting Assert Exception during test with freeRTOS
Dec 27, 2022
Hi @pablogs9,
This is thread is created to discuss issues facing on shared memory request response method
I am facing below issue at uxr_run_session_time
Here is my code . Could you please check and let me know anything i am missing
getting sometimes error at uxr_buffer_create_entity also as below
// Copyright 2017 Proyectos y Sistemas de Mantenimiento SL (eProsima).
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
#include "freertos/FreeRTOS.h"
#include "freertos/task.h"
#include <uxr/client/client.h>
#include <ucdr/microcdr.h>
#include <stdio.h> //printf
#include <string.h> //strcmp
#include <stdlib.h> //atoi
#include <unistd.h>
#define BUFFER_SIZE 1024
#define HISTORY_SIZE 8
#define SAMPLE_IDENTITY_SIZE 24
uxrObjectId replier_id;
uxrStreamId output_besteffort;
static bool send_msg_empty(
void* instance,
const uint8_t* buf,
size_t len)
{
(void) instance;
(void) buf;
(void) len;
}
static bool recv_msg_empty(
void* instance,
uint8_t** buf,
size_t* len,
int timeout)
{
(void) instance;
(void) buf;
(void) len;
(void) timeout;
}
static void on_request(
struct uxrSession* session,
uxrObjectId object_id,
uint16_t request_id,
SampleIdentity* sample_id,
struct ucdrBuffer* ub,
uint16_t length,
void* args)
{
// Process request
uint32_t in, out;
ucdr_deserialize_uint32_t(ub, &in);
out = in * 2;
}
static void on_reply(
struct uxrSession* session,
uxrObjectId object_id,
uint16_t request_id,
uint16_t reply_id,
struct ucdrBuffer* ub,
uint16_t length,
void* args)
{
(void) session;
(void) object_id;
(void) request_id;
(void) length;
(void) args;
}
void micro_ros_task(void * arg)
{
}
void app_main(void)
{
#if defined(CONFIG_MICRO_ROS_ESP_NETIF_WLAN) || defined(CONFIG_MICRO_ROS_ESP_NETIF_ENET)
// ESP_ERROR_CHECK(uros_network_interface_initialize());
#endif
}
Here is the setting of colon.meta
The text was updated successfully, but these errors were encountered: