Skip to content

Instantly share code, notes, and snippets.

void GazeboRosFactoryPrivate::GetModelList(
gazebo_msgs::srv::GetModelList::Response::SharedPtr res)
{
res->model_names.clear();
res->sim_time = world_->SimTime().Double();
for (unsigned int i = 0; i < world_->ModelCount(); i ++)
res->model_names.push_back(world_->ModelByIndex(i)->GetName());
gzerr << "disablign rendering has not been implemented, rendering is always enabled\n";
res->success = true;
res->status_message = "GetWorldProperties: got properties";
Ep: 0 Step: 13 Time: 0:00:07
Ep: 0 Step: 14 Time: 0:00:07
Can't complete trajectory, setting new trajectory: initial_positions
Can't complete trajectory, setting new trajectory: initial_positions
Can't complete trajectory, setting new trajectory: initial_positions
Can't complete trajectory, setting new trajectory: initial_positions
Can't complete trajectory, setting new trajectory: initial_positions
Can't complete trajectory, setting new trajectory: initial_positions
Can't complete trajectory, setting new trajectory: initial_positions
Can't complete trajectory, setting new trajectory: initial_positions
nestor@n-pc:~/ros2_mara_ws2$ colcon build --merge-install
[0.449s] ERROR:colcon:colcon build: Duplicate package names not supported:
- hrim_sensor_force_msgs:
- /home/nestor/ros2_mara_ws2/src/HRIM/generated/force/hrim_sensor_force_msgs
- /home/nestor/ros2_mara_ws2/src/HRIM/sensor/force/hrim_sensor_force_msgs
- hrim_sensor_forcetorque_msgs:
- /home/nestor/ros2_mara_ws2/src/HRIM/generated/forcetorque/hrim_sensor_forcetorque_msgs
- /home/nestor/ros2_mara_ws2/src/HRIM/sensor/forcetorque/hrim_sensor_forcetorque_msgs
- hrim_sensor_hygrometer_msgs:
- /home/nestor/ros2_mara_ws2/src/HRIM/generated/hygrometer/hrim_sensor_hygrometer_msgs
cv_bridge fails:
opencv for python3 not available in Ubuntu 16.04
wget https://github.com/milq/milq/blob/master/scripts/bash/install-opencv.sh
bash install-opencv.sh
rm ~/install-opencv.sh
image_transport fails:
sudo apt install libpcre3-dev
source ~/ros2_ws/install/local_setup.bash
not found: "/home/erle/ros2_ws/install/ament_clang_format
ament_copyright
ament_cppcheck
ament_cpplint
ament_flake8
ament_index_cpp
ament_index_python
ament_lint_cmake
ament_package
alias setup_mara='source /opt/ros/crystal/setup.bash ; source ~/ros2_mara_ws/install/setup.bash ; source /usr/share/gazebo/setup.sh ; export PYTHONPATH=$PYTHONPATH:~/ros2_mara_ws/install/lib/python3/dist-packages ; export GAZEBO_MODEL_PATH=$GAZEBO_MODEL_PATH:~/ros2_mara_ws/src/MARA ; export GAZEBO_PLUGIN_PATH=$GAZEBO_PLUGIN_PATH:~/ros2_mara_ws/src/MARA/mara_gazebo_plugins/build/'
trajectory_msgs.msg.JointTrajectory(header=std_msgs.msg.Header(stamp=builtin_interfaces.msg.Time(sec=0, nanosec=0), frame_id=''), joint_names=['motor1', 'motor2', 'motor3', 'motor4', 'motor5', 'motor6'], points=[trajectory_msgs.msg.JointTrajectoryPoint(positions=[0.3521591126918793, 0.3673589825630188, 1.3940757513046265, 0.5712053179740906, -0.441368967294693, -0.19781996309757233], velocities=[], accelerations=[], effort=[], time_from_start=builtin_interfaces.msg.Duration(sec=0, nanosec=1000000))])
@nzlz
nzlz / err
Created December 18, 2018 15:42
nestor@n-pc:~/ros2_mara_ws/install/lib/mara_utils_scripts$ ros2 launch mara_gazebo mara.launch.py
plugins /home/nestor/ros2_mara_ws/install
mara /home/nestor/ros2_mara_ws/install/share/mara_gazebo_plugins
[ERROR] [launch]: exception occurred while executing process[spawn_entity.py-3]:
Traceback (most recent call last):
File "/opt/ros/crystal/lib/python3.6/site-packages/launch/actions/execute_process.py", line 423, in __execute_process
stderr_to_stdout=(self.__output == 'screen'),
File "/opt/ros/crystal/lib/python3.6/site-packages/osrf_pycommon/process_utils/async_execute_process_asyncio/impl.py", line 140, in async_execute_process
stderr_to_stdout)
File "/opt/ros/crystal/lib/python3.6/site-packages/osrf_pycommon/process_utils/async_execute_process_asyncio/impl.py", line 48, in _async_execute_process_nopty
@nzlz
nzlz / tempgist
Last active December 17, 2018 10:43
nestor@n-pc:~/ros2_mara_ws/src/orocos_kinematics_dynamics/orocos_kinematics_dynamics/build$ cmake ..
-- The C compiler identification is GNU 7.3.0
-- The CXX compiler identification is GNU 7.3.0
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /usr/bin/c++
gym@gym-pc:~/gym-gazebo/examples/turtlebot$ python circuit_turtlebot_lidar_qlearn.py
ROS_MASTER_URI=http://localhost:12992
GAZEBO_MASTER_URI=http://localhost:12993
... logging to /home/gym/.ros/log/3c7cbf96-016e-11e9-8d0a-448a5b44d923/roslaunch-gym-pc-26380.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.