Eclipse cross compiling, launch file issue

asked 2018-07-11 02:27:06 -0500

TheMilkman gravatar image

updated 2018-07-11 10:31:17 -0500

jayess gravatar image

I've set up eclipse on a host machine to build and run our code base on our target machine (a Jetson TX2). I'm using a top level launchfile to launch multiple node cocurrently but at the moment I can only build and run the project fully on the host machine, both replay rosbag files and other nodes. On the target however, I can replay the bag files but I cant launch my other nodes.

The project was orignally set up on the target (TX2) so it shouldn't be a compatibility issue.

I was thinking it may be because of when eclipse synchronises from the host pc to the target it messes around with the file paths? and the top level .launch cant find the node it's told to run?

Thanks for reading this far and for any ideas you might have, some further information below

The following is the output of the start up;

roslaunch /home/nvidia/LaunchFiles/luci_test.launch
... logging to /home/nvidia/.ros/log/1f567cb4-84cc-11e8-958c-7ae074db7ca6/roslaunch-tegra-ubuntu-1-10758.log
Checking log directory for disk usage. This may take awhile.
Press Ctrl-C to interrupt
Done checking log file disk usage. Usage is <1GB.

started roslaunch server http://localhost:40542/

SUMMARY
========

PARAMETERS
 * /constant_dt: 0.0
 * /fixed_frame: odom
 * /publish_debug_topics: True
 * /publish_tf: True
 * /reverse_tf: False
 * /rosdistro: kinetic
 * /rosversion: 1.12.13
 * /stateless: False
 * /use_mag: False
 * /use_magnetic_field_msg: False
 * /use_sim_time: True
 * /world_frame: ned

NODES
  /
    LoggedSensors (rosbag/play)
    imu_filter_node (imu_filter_madgwick/imu_filter_node)

ROS_MASTER_URI=http://localhost:11311

process[LoggedSensors-1]: started with pid [10775]
ERROR: cannot launch node of type [imu_filter_madgwick/imu_filter_node]: imu_filter_madgwick
ROS path [0]=/opt/ros/kinetic/share/ros
ROS path [1]=/home/nvidia/remote_catkin_ws
ROS path [2]=/opt/ros/kinetic/share
[ INFO] [1531292101.040440529]: Opening /home/nvidia/bagfiles/IMU/_2018-05-09-09-44-15.bag
[ INFO] [1531292101.041111670]: Opening /home/nvidia/bagfiles/GPS/_2018-05-09-09-44-15.bag
[ INFO] [1531292101.041651962]: Opening /home/nvidia/bagfiles/LIDAR/_2018-05-09-09-44-15.bag

Waiting 0.2 seconds after advertising topics... done.

Hit space to toggle paused, or 's' to step.
 [PAUSED ]  Bag Time: 1525823056.912699   Duration: 0.000000 / 48.667006

And of my launch file;

<?xml version="1.0" encoding="UTF-8"?>
<launch>
<!-- ***EMULATED SENSORS*** -->
<param name="use_sim_time" value="true" />
<arg name="bagfile" default="_2018-05-09-09-44-15.bag" /> <!-- Bagfile Name -->
  <node pkg="rosbag" type="play" name="LoggedSensors" output="screen" args="--pause --clock 
  /home/nvidia/bagfiles/IMU/$(arg bagfile) 
  /home/nvidia/bagfiles/GPS/$(arg bagfile) 
  /home/nvidia/bagfiles/LIDAR/$(arg bagfile)"/>

<!-- ***OTHER NODES*** -->
<!-- IMU Filter Node -->
  <include file="/home/nvidia/LaunchFiles/madgwick.launch" />
</launch>

environment via (env | grep ROS)

ROS_ROOT=/opt/ros/kinetic/share/ros
ROS_PACKAGE_PATH=/home/nvidia/remote_catkin_ws:/opt/ros/kinetic/share
ROS_MASTER_URI=http://localhost:11311
ROS_VERSION=1 ROS_HOSTNAME=localhost
ROSLISP_PACKAGE_DIRECTORIES=
ROS_DISTRO=kinetic
ROS_ETC_DIR=/opt/ros/kinetic/etc/ros

Also the /launch that is causing the issue, madgwick.launch;

<?xml version="1.0" encoding="UTF-8"?>
<launch>
    <node name="imu_filter_node" pkg="imu_filter_madgwick" type="imu_filter_node" output="screen" respawn="false"/>
    <param name="use_magnetic_field_msg" value="false" />
    <param name="stateless" value="false"/>
    <param name="use_mag" value="false"/>
    <param name="publish_tf" value="true"/>
    <param name="reverse_tf" value="false"/>
    <param name="fixed_frame" value="odom"/>
    <param ...
(more)
edit retag flag offensive close merge delete

Comments

Can you edit and add the catkin_make ouptut in your question please ?

Delb gravatar image Delb  ( 2018-07-11 04:32:21 -0500 )edit

see that's the thing, it's getting built through eclipse. Did you want the output of the console in eclipse?

TheMilkman gravatar image TheMilkman  ( 2018-07-11 20:38:13 -0500 )edit

If it's relevant yes (like which compiler is used, the different ROS variables, the ROS/library path etc..), or maybe show/list your configuration in eclipse and the tooclhain.

Delb gravatar image Delb  ( 2018-07-12 02:00:57 -0500 )edit

But have you ever been able to compile from your host PC and run the nodes from the TX2 ? Because replaying bag files isn't the same thing as executing a node compiled on another machine. Bag files are just a type of file that can be used but the nodes depend on the binaries created when compiling.

Delb gravatar image Delb  ( 2018-07-12 02:04:15 -0500 )edit