ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question

inaciose's profile - activity

2022-07-26 12:09:53 -0500 received badge  Necromancer (source)
2021-05-19 10:48:38 -0500 marked best answer global path display is shorter than use to be

HI

Some time ago I have the global path full display. From the robot place to the goal.

You may see the green line in the following video.

https://www.youtube.com/watch?v=Xsv1R...

Now, i can only see the global path inside the dinamic window area.

You may see the line in the following video It is the blue line (i changed from green to blue, beacuse local path is green)

https://www.youtube.com/watch?v=Ue9GB...

I cant remember what I have done to do this change. May anyone help me to restore the full global path display.

Thanks

2021-05-19 02:31:48 -0500 received badge  Necromancer (source)
2021-05-19 02:31:48 -0500 received badge  Teacher (source)
2021-04-16 09:51:04 -0500 received badge  Famous Question (source)
2021-03-13 08:51:48 -0500 answered a question How to use kinect-v1 in ros noetic?

Yes there is. It is documented in the following page. https://aibegins.net/2020/11/22/give-your-next-robot-3d-vision-ki

2021-03-13 08:31:41 -0500 commented answer global path display is shorter than use to be

@miura how can i mark this answer as the best answer?

2021-03-13 08:30:18 -0500 received badge  Supporter (source)
2021-03-13 07:25:25 -0500 received badge  Popular Question (source)
2021-03-12 10:53:29 -0500 commented answer global path display is shorter than use to be

Solved. Thanks.

2021-03-11 17:09:54 -0500 asked a question global path display is shorter than use to be

global path display is shorter than use to be HI Some time ago I have the global path full display. From the robot plac

2020-10-13 10:17:20 -0500 received badge  Notable Question (source)
2020-07-14 05:25:11 -0500 received badge  Popular Question (source)
2020-05-26 07:24:07 -0500 edited answer Error "Does your IK Solver support approximate IK ?" Moveit!

Your arg2 is bad. You should not use the end effector, but the link in the arm that connect to the end effector. If shou

2020-05-26 07:24:07 -0500 received badge  Editor (source)
2020-05-25 18:33:34 -0500 answered a question Error "Does your IK Solver support approximate IK ?" Moveit!

Your arg2 is bad. You should not use the end effector link. If should you use: move_group.set_joint_value_target(pose_go

2020-05-25 18:12:30 -0500 commented answer Error "Does your IK Solver support approximate IK ?" Moveit!

@edote I also reach the problem of "Allow Aprox IK solutions" in a python program. But i belive there is something wrong

2020-05-25 18:12:17 -0500 commented answer Error "Does your IK Solver support approximate IK ?" Moveit!

@edote I also reach the problem of "Allow Aprox IK solutions" in a python program. But i belive there is something wrong

2020-05-25 18:09:21 -0500 commented answer Error "Does your IK Solver support approximate IK ?" Moveit!

@edote I also reach the problem of "Allow Aprox IK solutions" in a python program. But i belive there is something wrong

2020-05-25 17:50:38 -0500 commented answer Error "Does your IK Solver support approximate IK ?" Moveit!

@edote I also reach the problem of "Allow Aprox IK solutions" in a python program. But i belive there is something wrong

2020-05-24 18:22:26 -0500 received badge  Citizen Patrol (source)
2020-05-17 21:18:59 -0500 marked best answer convert utf-8 topic messages to ISO_8859-1

Hi!

Hi have a problem converting from std_msg::string message with utf-8 encoded chars. If the string is hardcoded it works good, using this sample block of code inside the ros node:

    iconv_t cd = iconv_open("UTF-8", "ISO_8859-1");
if (cd == (iconv_t) -1) {
    perror("iconv_open failed!");
    //return 1;
}

char charstr[] = "ent\xE3o conta-me l\xE1 como \xE9 que te chamas";
char *in_buf = &charstr[0];
size_t in_left = sizeof(charstr) - 1;

printf("hardcode string: %d\n", strlen(charstr));
for(int i = 0; i < strlen(charstr); i++) {
    printf("(%d %c) ", charstr[i], charstr[i]);
}
printf("\n");

char output[255];
char *out_buf = &output[0];
size_t out_left = sizeof(output) - 1;

do {
    if (iconv(cd, &in_buf, &in_left, &out_buf, &out_left) == (size_t) -1) {
        perror("iconv failed!");
        //return 1;
    }
} while (in_left > 0 && out_left > 0);
*out_buf = 0;

printf("%s -> %s\n", charstr, output);

it prints (and its ok):

ent�o conta-me l� como � que te chamas -> então conta-me lá como é que te chamas

If i try to feed the conversion with the same string from a subscribed topic message (I manually publish exactly the same string), with the same code but only adapted to use the topic message, as bellow.

std::copy( data.begin(), data.end(), charstr );
charstr[data.length()] = 0;

in_buf = &charstr[0];
in_left = sizeof(charstr) - 1;

out_buf = &output[0];
out_left = sizeof(output) - 1;

do {
    if (iconv(cd, &in_buf, &in_left, &out_buf, &out_left) == (size_t) -1) {
        perror("iconv failed!");
        //return 1;
    }
} while (in_left > 0 && out_left > 0);
*out_buf = 0;

printf("%s -> %s\n", charstr, output);

its print (wrong because not converted): ent\xE3o conta-me l\xE1 como \xE9 que te chamas -> ent\xE3o conta-me l\xE1 como \xE9 que

So... the code is the same, the input supposedly the same.

How do you handle the utf-8 strings in message topics on c++ nodes?

A code sample is gold!

tks

2020-05-17 21:18:43 -0500 received badge  Famous Question (source)
2020-05-17 16:29:50 -0500 answered a question Ros closed loop stepper motor driver Arduino Zero

Check the firmware for the mechaduino and niryo one. https://github.com/jcchurch13/Mechaduino-Firmware https://github.

2020-05-17 16:26:37 -0500 edited answer Small movements using moveit

I belive that this answer may help you! https://answers.ros.org/question/228190/moveit-end-effector-positioning/

2020-05-17 16:26:17 -0500 answered a question Small movements using moveit

I belive that this answer may help you!

2020-05-17 16:26:17 -0500 received badge  Rapid Responder (source)
2020-05-16 06:51:04 -0500 asked a question diff_drive_controller hard to turning right or left

diff_drive_controller hard to turning right or left Im trying to do a 2wd robot with ros control and manage to build the

2020-04-29 07:02:48 -0500 commented answer arduino robot arm with moveit

@makemelive Tankyou for share. Nice robot. :) I will take some time to check your repository.

2020-04-28 09:31:13 -0500 answered a question Trouble understanding ROS Control

Please see this Answer for a full serial interface to ros controllers on Arduino https://answers.ros.org/question/26350

2020-04-16 20:14:52 -0500 answered a question arduino robot arm with moveit

Two solutions Microcontroler running roserial subscribe to the /joint_states and drive the servos Solution one Sample

2019-11-16 02:59:54 -0500 received badge  Notable Question (source)
2019-11-16 02:59:54 -0500 received badge  Popular Question (source)
2019-11-13 22:17:27 -0500 answered a question convert utf-8 topic messages to ISO_8859-1

After spent some more time around this I found that my test procedure was wrong. Long story. I print all the bytes in

2019-11-13 19:10:58 -0500 received badge  Rapid Responder (source)
2019-11-13 08:42:10 -0500 received badge  Enthusiast
2019-11-12 16:34:40 -0500 asked a question convert utf-8 topic messages to ISO_8859-1

convert utf-8 topic messages to ISO_8859-1 Hi! Hi have a problem converting from std_msg::string message with utf-8 en