Skip to content

Commit d7694c6

Browse files
Merged in fix/raisim_folder (pull request #465)
Fix/raisim folder
2 parents a5d6a12 + 5f02ca2 commit d7694c6

File tree

15 files changed

+183
-63
lines changed

15 files changed

+183
-63
lines changed

ocs2_core/include/ocs2_core/misc/CommandLine.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
3333
#include <chrono>
3434
#include <iostream>
3535
#include <iterator>
36+
#include <sstream>
3637
#include <string>
3738
#include <thread>
3839
#include <vector>

ocs2_msgs/CMakeLists.txt

Lines changed: 19 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,38 +1,36 @@
11
cmake_minimum_required(VERSION 3.0.2)
22
project(ocs2_msgs)
33

4-
set(CATKIN_PACKAGE_DEPENDENCIES std_msgs)
5-
64
find_package(catkin REQUIRED
7-
COMPONENTS
8-
${CATKIN_PACKAGE_DEPENDENCIES}
9-
message_generation
5+
COMPONENTS
6+
std_msgs
7+
message_generation
108
)
119

1210
add_message_files(
13-
FILES
14-
mpc_state.msg
15-
mpc_input.msg
16-
mode_schedule.msg
17-
mpc_observation.msg
18-
mpc_performance_indices.msg
19-
mpc_target_trajectories.msg
20-
controller_data.msg
21-
mpc_flattened_controller.msg
11+
FILES
12+
mpc_state.msg
13+
mpc_input.msg
14+
mode_schedule.msg
15+
mpc_observation.msg
16+
mpc_performance_indices.msg
17+
mpc_target_trajectories.msg
18+
controller_data.msg
19+
mpc_flattened_controller.msg
2220
)
2321

2422
add_service_files(
25-
FILES
26-
reset.srv
23+
FILES
24+
reset.srv
2725
)
2826

2927
generate_messages(
30-
DEPENDENCIES
31-
${CATKIN_PACKAGE_DEPENDENCIES}
28+
DEPENDENCIES
29+
std_msgs
3230
)
3331

3432
catkin_package(
35-
CATKIN_DEPENDS
36-
${CATKIN_PACKAGE_DEPENDENCIES}
37-
message_runtime
33+
CATKIN_DEPENDS
34+
std_msgs
35+
message_runtime
3836
)
File renamed without changes.

ocs2_raisim/include/ocs2_raisim/RaisimRollout.h renamed to ocs2_raisim/ocs2_raisim/include/ocs2_raisim/RaisimRollout.h

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,10 +31,12 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
3131

3232
#include <cstdlib>
3333

34-
#include <ocs2_oc/rollout/RolloutBase.h>
35-
#include <ocs2_raisim/RaisimRolloutSettings.h>
3634
#include <raisim/World.hpp>
3735

36+
#include <ocs2_oc/rollout/RolloutBase.h>
37+
38+
#include "ocs2_raisim/RaisimRolloutSettings.h"
39+
3840
#ifdef USE_RAISIM_VISUALIZER
3941
#include <raisim/OgreVis.hpp>
4042
#endif
File renamed without changes.

ocs2_raisim/src/RaisimRollout.cpp renamed to ocs2_raisim/ocs2_raisim/src/RaisimRollout.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
2727
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
2828
******************************************************************************/
2929

30-
#include <ocs2_raisim/RaisimRollout.h>
30+
#include "ocs2_raisim/RaisimRollout.h"
3131

3232
namespace ocs2 {
3333

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
/******************************************************************************
2+
Copyright (c) 2017, Farbod Farshidian. All rights reserved.
3+
4+
Redistribution and use in source and binary forms, with or without
5+
modification, are permitted provided that the following conditions are met:
6+
7+
* Redistributions of source code must retain the above copyright notice, this
8+
list of conditions and the following disclaimer.
9+
10+
* Redistributions in binary form must reproduce the above copyright notice,
11+
this list of conditions and the following disclaimer in the documentation
12+
and/or other materials provided with the distribution.
13+
14+
* Neither the name of the copyright holder nor the names of its
15+
contributors may be used to endorse or promote products derived from
16+
this software without specific prior written permission.
17+
18+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
19+
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
20+
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
21+
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
22+
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
23+
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
24+
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
25+
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
26+
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
27+
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
28+
******************************************************************************/
29+
30+
#include "ocs2_raisim/RaisimRollout.h"
31+
#include "ocs2_raisim/RaisimRolloutSettings.h"
32+
33+
int main() {
34+
return 0;
35+
}

ocs2_raisim_ros/include/ocs2_raisim_ros/RaisimHeightmapRosConverter.h renamed to ocs2_raisim/ocs2_raisim_ros/include/ocs2_raisim_ros/RaisimHeightmapRosConverter.h

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,32 @@
1+
/******************************************************************************
2+
Copyright (c) 2017, Farbod Farshidian. All rights reserved.
3+
4+
Redistribution and use in source and binary forms, with or without
5+
modification, are permitted provided that the following conditions are met:
6+
7+
* Redistributions of source code must retain the above copyright notice, this
8+
list of conditions and the following disclaimer.
9+
10+
* Redistributions in binary form must reproduce the above copyright notice,
11+
this list of conditions and the following disclaimer in the documentation
12+
and/or other materials provided with the distribution.
13+
14+
* Neither the name of the copyright holder nor the names of its
15+
contributors may be used to endorse or promote products derived from
16+
this software without specific prior written permission.
17+
18+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
19+
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
20+
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
21+
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
22+
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
23+
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
24+
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
25+
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
26+
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
27+
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
28+
******************************************************************************/
29+
130
#include <grid_map_msgs/GridMap.h>
231
#include <ros/node_handle.h>
332
#include <ros/publisher.h>

0 commit comments

Comments
 (0)