OUXT-Polaris / ros_ship_packages

USV simulator for ROS
128 stars 46 forks source link

Would you mind telling me how to install this package? #1

Open LeoWayne opened 6 years ago

LeoWayne commented 6 years ago

Would you mind telling me how to install this package?

hakuturu583 commented 6 years ago

Thank you for posting this issue.

  1. create catkin_ws
  2. git clone git@github.com:hakuturu583/ros_ship_packages.git
  3. catkin_make
  4. roslaunch ros_ship_gazebo_plugins wam-v_gazebo.launch

Best regards

LeoWayne commented 6 years ago

fatal error: ros_ship_visualization/PlotCharacteristicCurve.h: No such file or directory. I think this package might miss some files. Would you mind pack the whole package for me? Thanks a lot!

hakuturu583 commented 6 years ago

Sorry... I think you failed to build service files in ros_ship_visualization package or there are something wrong with CMakeLists.txt in ros_ship_visualization package... I try to update soon. Thank you.

hakuturu583 commented 6 years ago

I think you failed to build this service file. https://github.com/hakuturu583/ros_ship_packages/blob/master/ros_ship_visualization/srv/PlotCharacteristicCurve.srv

LeoWayne commented 6 years ago

Sorry, I am a new learner in this, can you tell me how I can built this service file sucessfully?

hakuturu583 commented 6 years ago

This service was included in the ros_ship_visualization package. So, please try this process.

  1. git pull
  2. catkin_make --pkg ros_ship_visualization
  3. catkin_make

in process 2, catkin built PlotCharacteristicCurve.srv and generate PlotCharacteristicCurve.h automatically. Please check code generation by using locate PlotCharacteristicCurve.h the result should be /home/(username)/catkin_ws/devel/include/ros_ship_visualization/PlotCharacteristicCurve.h

LeoWayne commented 6 years ago

The service file was built successfully. But in the end I got this problem.

LeoWayne commented 6 years ago

[100%] Building CXX object ros_ship_packages/ros_ship_navigation/CMakeFiles/twist_from_fix_velocity_node.dir/src/twist_calculator.cpp.o Linking CXX executable /home/user/catkin_ws/devel/lib/ros_ship_navigation/twist_from_fix_velocity_node CMakeFiles/twist_from_fix_velocity_node.dir/src/twist_calculator.cpp.o: In function tf2::gmTransformToKDL(geometry_msgs::TransformStamped_<std::allocator<void> > const&)': twist_calculator.cpp:(.text._ZN3tf216gmTransformToKDLERKN13geometry_msgs17TransformStamped_ISaIvEEE[_ZN3tf216gmTransformToKDLERKN13geometry_msgs17TransformStamped_ISaIvEEE]+0xc5): undefined reference toKDL::Rotation::Quaternion(double, double, double, double)' collect2: error: ld returned 1 exit status make[2]: [/home/user/catkin_ws/devel/lib/ros_ship_navigation/twist_from_fix_velocity_node] Error 1 make[1]: [ros_ship_packages/ros_ship_navigation/CMakeFiles/twist_from_fix_velocity_node.dir/all] Error 2 make: *** [all] Error 2 Invoking "make -j2 -l2" failed

hakuturu583 commented 6 years ago

In my environment, I never faced such a probrem... your ROS version is kinetic kame?? I develop this package in this environment ROS version: kinetic kame Ubuntu:16.04

I guess this error occurs from KDL version defference... Are you usually use tf2 or tf??

hakuturu583 commented 6 years ago

@LeoWayne I reconfigure build order of packages. So, I think your first problem will be fixed.

andelnegro6 commented 6 years ago

did anyone have problems with "ros-kinetic-julius"? It's necessary for the other packages and I tried installing and it says:

rsync: mkdir "/opt/ros/indigo/share/julius" failed: No such file or directory (2) rsync error: error in file IO (code 11) at main.c(674) [Receiver=3.1.1] dpkg: error processing archive /var/cache/apt/archives/ros-kinetic-julius_2.1.6-0xenial-20171123-002032-0800_amd64.deb (--unpack): subprocess new pre-installation script returned error exit status 11 Errors were encountered while processing: /var/cache/apt/archives/ros-kinetic-julius_2.1.6-0xenial-20171123-002032-0800_amd64.deb E: Sub-process /usr/bin/dpkg returned an error code (1)

Hakuturu583, do you have any idea of this? why is it looking for a file in a different ROS version?

Thanks

hakuturu583 commented 6 years ago

@andelnegro6 I think it depends on ros-kinetic-jsk* related packages. Now, we make a /opt/ros/indigo/share directory and install julis, then we move julis into /opt/ros/kinetic/share directory.