Skip to content

Commit e7493cd

Browse files
pablogs9BorjaOuterelo
authored andcommitted
Kobuki firmware updates (#88)
1 parent 080a6a1 commit e7493cd

1 file changed

Lines changed: 19 additions & 4 deletions

File tree

  • _docs/tutorials/demos/crazyflie_demo

‎_docs/tutorials/demos/crazyflie_demo/index.md‎

Lines changed: 19 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ git clone -b Micro-XRCE-DDS_Bridge https://github.com/eProsima/crazyflie-clients
179179
Create a workspace for building **micro-ROS**:
180180
```
181181
source /opt/ros/crystal/setup.bash
182-
sudo apt install python-rosdep
182+
sudo apt install python-rosdep curl flex ed gperf openocd automake ed bison libncurses5-dev gcc-arm-none-eabi clang clang-tidy usbutils
183183
mkdir -p kobuki-firmware/src
184184
cd kobuki-firmware
185185
git clone --recursive -b crazyflie_demo https://github.com/micro-ROS/micro-ros-build.git src/micro-ros-build
@@ -189,16 +189,31 @@ source install/local_setup.bash
189189

190190
Build **micro-ROS Agent**:
191191
```
192-
colcon build --packages-select micro_ros_setup
193-
source install/local_setup.bash
192+
ros2 run micro_ros_setup create_agent_ws.sh
193+
colcon build
194+
source install/local_setup.sh
195+
```
196+
197+
Install tools:
198+
```
199+
git clone https://bitbucket.org/nuttx/tools.git ~/tools
200+
pushd ~/tools/kconfig-frontends >/dev/null
201+
./configure --enable-mconf --disable-nconf --disable-gconf --disable-qconf
202+
LD_RUN_PATH=/usr/local/lib && make && make install && ldconfig
203+
popd >/dev/null
194204
```
195205

196206
Build Olimex STM32-E407 firmware:
197207
```
198208
ros2 run micro_ros_setup create_firmware_ws.sh
199209
cd firmware/NuttX
200-
tools/configure.sh configs/olimex-stm32-e407/drive_base
210+
tools/configure.sh configs/olimex-stm32-e407/uros
201211
cd ../..
212+
213+
#Put here your agent IP and port
214+
find ./firmware/mcu_ws/ -name rmw_microxrcedds.config -exec sed -i "s/CONFIG_IP=127.0.0.1/CONFIG_IP=192.168.8.10/g" {} \;
215+
find ./firmware/mcu_ws/ -name rmw_microxrcedds.config -exec sed -i "s/CONFIG_PORT=8888/CONFIG_PORT=9999/g" {} \;
216+
202217
ros2 run micro_ros_setup build_firmware.sh
203218
```
204219

0 commit comments

Comments
 (0)