thanks @salem for pointer in this direction.
I have a CMakeLists.txt file. I wanted to create separate ROS nodes (executable) one based on CMotionPlanner and other based on CCollisionObject....
Type: Posts; User: zahid990170
thanks @salem for pointer in this direction.
I have a CMakeLists.txt file. I wanted to create separate ROS nodes (executable) one based on CMotionPlanner and other based on CCollisionObject....
Hi,
I am relatively beginner in C++. I have the following question.
I have two classes, CMotionPlanner which is the base class, and CCollisionObject which is the derived / subclass.
...
thank you,
yes, I was allocating columns as major dimension.
I think, it is much less complicated to go with the option of using a struct. I will try this.
getting a segmentation fault while trying to
strcpy( *(char**)(MY_ARRAY[0] + i) , val_0);
I have updated the code to show
int numByteInfo[10] = {20, 1, 4, 2, 2, 1, 1, 4, 8, 1};
I am expecting that , 20 bytes are allocated to each element in first column.
thanks,
Zahid
Hi all,
I have a text file (tab delimited). This file contains a set of records. Each line is one record. Imagine that column headers have the following types.
(char*) (uint8_t) (uint32_t)...
Hi all,
I have a structure defined in the following way:
enum F_STATUS
{
NOT_DONE = 0,
Hi all,
I need some help with the following problem.
I have a C macro defined like this:
#define AB_MAX_us_OP(_____ec) (long)(AB_MAX_bits_AP(_____ec)*D_T_US)
thanks for reply.
I figured out, that normally, my second dimension was always fixed and I could always workout the size of first dimension. Therefore, I started to drop the pointer notation, and...
Hi all,
I have a general question.
This is regarding better understanding of representation/usage of 2D arrays.
consider the following.
#define MAX_COLS 4
Hi Salem,
I am looking into this, and will write later on if I have another useful information.
thanks for your help and time.
Zahid
to answer briefly the previous comment,
library compilation went smooth, as it did not complain and it was able to find the needed file. In the local makefile , I have included the paths:
...
thank you Salem,
In order to explain this, I will write here the longer version that I wrote elsewhere. You can reply in your convenience. thanks for your time
...
Hi Salem,
thanks for your message.
As a follow up to this question, I write something regarding compilation process, as I think, there may be the problem. Please, if you or someone can help...
thanks Salem,
while I try to debug this with Valgrind,
here is something I would like to share, hoping someone can identify some potential cause of problem.
In the two functions, the...
Another note:
However, when I try to watch just the memory location which relates with "sv.s_lvl" i.e. address "0xbffff344",
this is the output that I receive which I am not able to...
Hi,
thanks for your help. I write more about this issue.
Inside the caller function which is "a_function()", I have two variables of the structure SV. One variable is sv_t sv, and other...
Hi,
thanks for the reply.
However, I have been getting the same strange behavior.
Before "b_function" is called, I can see the correct output (level is L_I) but inside "b_function" its...
thanks for the reply.
However, in my program this strange behavior is persisting.
Until before the call to "b_function()" the values are correct, but inside the "b_function()" whenever I print,...
Hi,
I am experiencing a strange behavior when using enum.
My enum is as follows:
typedef enum {
L_R = 0,
thanks,
I still could not solve my problem, However, I observed the following:
Imagine, I create an structure variable and fill its member with values.
I have a function defined as...
thank you, I made a small program but its working fine, as expected, my original program is complex, I will have to see, where does the problem happen
Hi, To add further, I have the following macros that give access to struct members. For example,
#define abc_Get_level(_p_) ( (_p_)->lvl)
It is this macro which gives always the same...
Hi all,
I specify an enum which I use in another struct as show below:
typedef enum {
L_R,
L_I,
L_L
Hi,
thanks, I think, I was able to find different sources of problem,
One of them was that I was instantiating a variable of type "abc_ptr", and I was using this to assign values to structure...