ROS catkin_init_workspace not found when spawned as process by PHP
问题 Let me elaborate: I am trying to spawn the catkin_init_workspace from PHP, using the proc_open like so: touch( "$dir/stderr.txt" ); chmod( "$dir/stderr.txt", 0755 ); $fp = fopen("$dir/stderr.txt", "w"); fclose($fp); $descr = array( 0 => array("pipe", 'r'), // stdin 1 => array("pipe", 'w'), // stdout 2 => array("file", "$dir/stderr.txt", "w")to file ); $pid = proc_open( "catkin_init_workspace", $descr, $pipes, $dir ); if (!is_resource( $pid) ) throw new Exception ( "`catkin_init_workspace`