unitreerobotics / unitree_ros_to_real

103 stars 93 forks source link

Unable to launch the 'real_launch'; "Error: create pthread failed". #12

Open ImpressiveTaste opened 2 years ago

ImpressiveTaste commented 2 years ago

I am having problems running "real_launch";

Is it correct to run "real_launch" under my personal pc?

I write in the terminal, in my pc, under root account: "roslaunch unitree_legged_real real.launch rname:=aliengo ctrl_level:=highlevel firmwork:=3_1" but it doesn't run correctly giving me an error in creating the pthread.

I was planning to control the AlienGo real robot via a ROS implemented code through a Raspberry microprocessor (now for testing purposes I am using an Intel7 processor machine). From literature it seems clear that after creating the ROS high-level message I need to send it through the LCM using: roslcm.send();

I am using the AlienGo SDK.

Here is the full error code that I get in the terminal:

root@ubuntu:/home/marco# roslaunch unitree_legged_real real.launch rname:=aliengo ctrl_level:=highlevel firmwork:=3_1
... logging to /root/.ros/log/ed43221e-659a-11ec-ba43-001c42237988/roslaunch-ubuntu-16362.log
Checking log directory for disk usage. This may take a while.
Press Ctrl-C to interrupt
Done checking log file disk usage. Usage is <1GB.

started roslaunch server http://ubuntu:41307/

SUMMARY
========

PARAMETERS
 * /control_level: highlevel
 * /firmwork: 3_1
 * /robot_name: aliengo
 * /rosdistro: melodic
 * /rosversion: 1.14.12

NODES
  /
    node_lcm_server (unitree_legged_real/lcm_server_3_1)

auto-starting new master
process[master]: started with pid [16372]
ROS_MASTER_URI=http://localhost:11311

setting /run_id to ed43221e-659a-11ec-ba43-001c42237988
process[rosout-1]: started with pid [16386]
started core service [/rosout]
process[node_lcm_server-2]: started with pid [16389]
UDP Initialized. Port: 8008 
LCM Initialized. Subscribe channel: LCM_High_Cmd, Publish channel: LCM_High_State
Error: Create pthread failed.
[node_lcm_server-2] process has died [pid 16389, exit code 254, cmd /home/marco/catkin_ws/devel/lib/unitree_legged_real/lcm_server_3_1 aliengo highlevel __name:=node_lcm_server __log:=/root/.ros/log/ed43221e-659a-11ec-ba43-001c42237988/node_lcm_server-2.log].
log file: /root/.ros/log/ed43221e-659a-11ec-ba43-001c42237988/node_lcm_server-2*.log
itaouil commented 2 years ago

Maybe this previous issue helps:

unitreerobotics/unitree_legged_sdk#13

ImpressiveTaste commented 2 years ago

Maybe this previous issue helps:

unitreerobotics/unitree_legged_sdk#13

Thankyou for the help, I tried your solutions but it still didn't help. I also tried to run directly the executables examples of the sdk, they also give the error Error: Create pthread failed.

I wanted to launch it without connecting to the robot to see if the codes could run indepently and also because currently I don't have the AlienGo robot avaliable with me, Since it can't connect to the unitree robot, Is it possible that the problem is due to this fact?

itaouil commented 2 years ago

Ah yeah it could be that the reason.

To double check if that is the actual reason try to run the low level examples of the SDK with the simulation environment that unitree offers.

There you can only do low level control.